Skip to content

Commit

Permalink
Add missing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
exil0867 committed Oct 8, 2023
1 parent e228936 commit 96a423f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:3.11-slim-bookworm

RUN bash ./install-deps.sh

RUN mkdir /config

VOLUME /config
Expand Down
9 changes: 9 additions & 0 deletions install-deps.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 96a423f

Please sign in to comment.