Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
chore: call 'pip'
Browse files Browse the repository at this point in the history
  • Loading branch information
miwurster committed Apr 10, 2024
1 parent e525408 commit ee1cd76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM python:3.8-slim-buster
FROM python:3-slim-buster

ENV PORT=8081

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

RUN mkdir src
COPY ./src src
COPY ./requirements.txt requirements.txt

RUN pip install -r requirements.txt

COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x ./entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ if [ -f dependencies.txt ] && cmp -s dependencies.txt /user_code/requirements.tx
exec "$@"
else
cp /user_code/requirements.txt dependencies.txt
pip3 install -r /user_code/requirements.txt
pip install -r /user_code/requirements.txt
fi

0 comments on commit ee1cd76

Please sign in to comment.