cleanup devcontainer

This commit is contained in:
Thephaseless 2024-11-24 20:14:01 +00:00
parent 462e73ac8a
commit 96940d9ce5
2 changed files with 7 additions and 34 deletions

View File

@ -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 -

View File

@ -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"
]
}