Skip to content

Commit

Permalink
Merge pull request #30 from exilvm/exilvm/add-missing-packages
Browse files Browse the repository at this point in the history
Add missing packages
  • Loading branch information
exil0867 authored Oct 8, 2023
2 parents 9c0254e + 97def7d commit 9747253
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ADD pyproject.toml .

ADD poetry.lock .

RUN curl -sSL https://install.python-poetry.org | python3 -
ADD install-deps.sh /tmp

RUN /root/.local/bin/poetry install
RUN bash /tmp/install-deps.sh

CMD ["/root/.local/bin/poetry", "run", "python", "/app.py"]
CMD ["/root/.local/bin/poetry", "run", "python", "/app.py"]
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

apt -y update

apt install curl -y

curl -sSL https://install.python-poetry.org | python3 -

/root/.local/bin/poetry install

0 comments on commit 9747253

Please sign in to comment.