This commit is contained in:
alydev 2024-05-09 17:18:17 +10:00
parent 47eb1c84ac
commit 46c5e23dc6
No known key found for this signature in database
GPG key ID: F4D2C7A426DDA1BD
3 changed files with 14 additions and 17 deletions

View file

@ -1,5 +1,8 @@
FROM python:3.12.3
RUN pip install pipenv --upgrade
FROM python:3.12.3-slim-bullseye
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN pip install pip pipenv --upgrade
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
@ -8,6 +11,6 @@ RUN pipenv lock && pipenv sync
COPY . /usr/src/app
EXPOSE 80
EXPOSE 8000
COPY ./runserver.sh /usr/local/bin/
CMD ["sh", "runserver.sh"]
CMD ["pipenv", "runserver.sh"]