From 96a423fecfe27b447d0859c80e21402de843aed8 Mon Sep 17 00:00:00 2001 From: Exil Date: Sun, 8 Oct 2023 13:11:58 +0000 Subject: [PATCH] Add missing packages --- .devcontainer/devcontainer.json | 3 ++- Dockerfile | 2 ++ install-deps.sh | 9 +++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 install-deps.sh 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