Update Dockerfile
This commit is contained in:
+5
-1
@@ -2,7 +2,11 @@ FROM python:3.10-slim
|
||||
|
||||
COPY Pipfile* /app/
|
||||
WORKDIR /app/
|
||||
RUN apt update && apt install -y jq gcc libpq5 libpq-dev && jq -r '.default | to_entries[] | .key + .value.version' Pipfile.lock > requirements.txt
|
||||
RUN apt update && \
|
||||
apt install -y jq gcc libpq5 libpq-dev && \
|
||||
jq -r '.default | to_entries[] | .key + .value.version' Pipfile.lock > requirements.txt && \
|
||||
sed -i "s/psycopg2-binary/psycopg2/g" requirements.txt
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY classquiz/ /app/classquiz/
|
||||
|
||||
Reference in New Issue
Block a user