port
This commit is contained in:
parent
47eb1c84ac
commit
46c5e23dc6
3 changed files with 14 additions and 17 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue