mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
fix devcontainer
This commit is contained in:
parent
158d6fc56e
commit
cc0b291a1a
@ -1,8 +1,26 @@
|
|||||||
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
|
FROM python:3.12
|
||||||
|
|
||||||
|
# Inspired by https://github.com/Hudrolax/uc-docker-alpine/
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
USER vscode
|
|
||||||
RUN pipx install poetry
|
RUN pipx install poetry
|
||||||
RUN poetry config virtualenvs.in-project true
|
# RUN poetry config virtualenvs.in-project true
|
||||||
RUN sudo apt update && sudo apt upgrade -y
|
|
||||||
RUN sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
||||||
RUN sudo apt install -y ./google-chrome-stable_current_amd64.deb
|
|
@ -6,7 +6,10 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
"runArgs": ["-p", "8181:8191"],
|
"runArgs": [
|
||||||
|
"-p",
|
||||||
|
"8181:8191"
|
||||||
|
],
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
@ -19,15 +22,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postStartCommand": "poetry install",
|
// "postStartCommand": "poetry install",
|
||||||
// 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": [6080],
|
"forwardPorts": [
|
||||||
"features": {
|
5900
|
||||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
|
]
|
||||||
"ghcr.io/devcontainers/features/desktop-lite:1": {}
|
|
||||||
}
|
|
||||||
// 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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user