|
|
@@ -1,4 +1,4 @@
|
|
|
-FROM python:3.9-buster
|
|
|
+FROM python:3.9-alpine
|
|
|
# don't write .pyc files on import
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
# force stdout and stderr to be unbuffered
|
|
|
@@ -8,4 +8,7 @@ EXPOSE 8000
|
|
|
WORKDIR /app
|
|
|
COPY ./app .
|
|
|
RUN pip install -r /app/requirements.txt
|
|
|
+COPY ./entrypoint.sh /
|
|
|
+RUN chmod +x /entrypoint.sh
|
|
|
+ENTRYPOINT [ "/entrypoint.sh" ]
|
|
|
CMD python manage.py runserver 0.0.0.0:8000
|