mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 01:40:21 +08:00
cleanup devcontainer
This commit is contained in:
parent
462e73ac8a
commit
96940d9ce5
@ -1,27 +1,5 @@
|
||||
FROM python:3.12
|
||||
|
||||
# Inspired by https://github.com/Hudrolax/uc-docker-alpine/
|
||||
RUN apt update && apt upgrade -y && apt install -y chromium
|
||||
|
||||
# Install build dependencies
|
||||
RUN apt update && apt upgrade -y && apt install -y\
|
||||
curl \
|
||||
wget \
|
||||
unzip \
|
||||
gnupg \
|
||||
bash \
|
||||
stow
|
||||
|
||||
# Install dependencies
|
||||
RUN apt install -y \
|
||||
xvfb \
|
||||
x11vnc \
|
||||
fluxbox \
|
||||
xterm \
|
||||
git \
|
||||
ca-certificates \
|
||||
pipx \
|
||||
chromium
|
||||
|
||||
RUN pipx install poetry
|
||||
ENV DISPLAY=:0
|
||||
# RUN poetry config virtualenvs.in-project true
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
@ -1,17 +1,10 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
||||
{
|
||||
"name": "Python 3",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"runArgs": [
|
||||
"-p",
|
||||
"8181:8191",
|
||||
"--cap-add",
|
||||
"SYS_ADMIN"
|
||||
],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
@ -27,13 +20,15 @@
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
// "features": {},
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
"forwardPorts": [
|
||||
5900
|
||||
]
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
// "postCreateCommand": "pip3 install --user -r requirements.txt",
|
||||
// Configure tool-specific properties.
|
||||
// "customizations": {},
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
"name": "Byparr Dev Container",
|
||||
"runArgs": [
|
||||
"-p",
|
||||
"8181:8191"
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user