diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4901635..a4373e2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -33,7 +33,8 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "curl -sSL https://install.python-poetry.org | python3 - && poetry install", + "postCreateCommand": "bash ./install-deps.sh", + "postStartCommand": "DEBIAN_FRONTEND=noninteractive apt -y update", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode", diff --git a/Dockerfile b/Dockerfile index 83f70ae..df6720e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:3.11-slim-bookworm +RUN bash ./install-deps.sh + RUN mkdir /config VOLUME /config diff --git a/install-deps.sh b/install-deps.sh new file mode 100644 index 0000000..6ec926b --- /dev/null +++ b/install-deps.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +DEBIAN_FRONTEND=noninteractive apt -y update + +sudo apt install curl -y + +curl -sSL https://install.python-poetry.org | python3 - + +poetry install \ No newline at end of file