mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
cleanup devcontainer
This commit is contained in:
parent
462e73ac8a
commit
96940d9ce5
@ -1,27 +1,5 @@
|
|||||||
FROM python:3.12
|
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 curl -sSL https://install.python-poetry.org | python3 -
|
||||||
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
|
|
@ -1,17 +1,10 @@
|
|||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
// 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
|
// 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
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
"runArgs": [
|
|
||||||
"-p",
|
|
||||||
"8181:8191",
|
|
||||||
"--cap-add",
|
|
||||||
"SYS_ADMIN"
|
|
||||||
],
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
@ -27,13 +20,15 @@
|
|||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
// "features": {},
|
// "features": {},
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// 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.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
// "postCreateCommand": "pip3 install --user -r requirements.txt",
|
// "postCreateCommand": "pip3 install --user -r requirements.txt",
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
// "customizations": {},
|
// "customizations": {},
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
// "remoteUser": "root"
|
// "remoteUser": "root"
|
||||||
|
"name": "Byparr Dev Container",
|
||||||
|
"runArgs": [
|
||||||
|
"-p",
|
||||||
|
"8181:8191"
|
||||||
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user