From 96940d9ce50280bc18dc64f144f627e30834ef2c Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Sun, 24 Nov 2024 20:14:01 +0000 Subject: [PATCH] cleanup devcontainer --- .devcontainer/Dockerfile | 26 ++------------------------ .devcontainer/devcontainer.json | 15 +++++---------- 2 files changed, 7 insertions(+), 34 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3d08468..e0ad75f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 \ No newline at end of file +RUN curl -sSL https://install.python-poetry.org | python3 - \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0136499..f494e45 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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" + ] } \ No newline at end of file