✨ Fixed Docker
This commit is contained in:
+6
-5
@@ -1,13 +1,14 @@
|
||||
FROM python:3.10-slim
|
||||
FROM python:3.11-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 && \
|
||||
sed -i "s/psycopg2-binary/psycopg2/g" requirements.txt
|
||||
apt install -y jq gcc libpq5 libpq-dev libmagic1 && \
|
||||
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
|
||||
RUN pip install -r requirements.txt && \
|
||||
apt remove -y jq gcc
|
||||
|
||||
COPY classquiz/ /app/classquiz/
|
||||
COPY image_cleanup.py /app/image_cleanup.py
|
||||
|
||||
Reference in New Issue
Block a user