ok new plan
This commit is contained in:
parent
648eef2f6c
commit
d7305cf372
6 changed files with 7 additions and 96 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -1,16 +1,8 @@
|
|||
FROM python:3.12.3-slim-bullseye
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
FROM tiangolo/meinheld-gunicorn:latest
|
||||
|
||||
RUN pip install pip pipenv --upgrade
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
RUN pip install pip --upgrade && pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
||||
|
||||
COPY ./Pipfile /usr/src/app
|
||||
RUN pipenv lock && pipenv sync
|
||||
COPY . /app
|
||||
|
||||
COPY . /usr/src/app
|
||||
|
||||
EXPOSE 8000
|
||||
COPY ./runserver.sh /usr/local/bin/
|
||||
CMD ["pipenv", "run", "sh", "runserver.sh"]
|
||||
ENV APP_MODULE="xivpet.wsgi:application"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue