ok new plan

This commit is contained in:
alydev 2024-05-09 17:42:06 +10:00
parent 648eef2f6c
commit d7305cf372
No known key found for this signature in database
GPG key ID: F4D2C7A426DDA1BD
6 changed files with 7 additions and 96 deletions

View file

@ -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"