mirror of
https://github.com/Retropex/DeepSea-startos.git
synced 2025-05-13 06:00:40 +02:00
update to production server
This commit is contained in:
parent
109c48e5a2
commit
7f417b0071
16
Dockerfile
16
Dockerfile
@ -1,15 +1,23 @@
|
|||||||
FROM debian:bookworm-slim
|
FROM python:3.9.18-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update &&\
|
RUN apt-get update &&\
|
||||||
apt-get install python3 python3-pip curl -y
|
apt-get install curl -y &&\
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
COPY DeepSea-Dashboard /app
|
COPY DeepSea-Dashboard /app
|
||||||
|
|
||||||
RUN pip install --break-system-packages -r requirements.txt
|
RUN pip install --break-system-packages -r requirements.txt
|
||||||
|
|
||||||
RUN python3 setup.py
|
RUN python setup.py
|
||||||
|
|
||||||
|
RUN python minify.py
|
||||||
|
|
||||||
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
|
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
|
||||||
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh
|
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh
|
||||||
|
|
||||||
|
ENV FLASK_ENV=production
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
CMD ["gunicorn", "-b", "0.0.0.0:5000", "App:app"]
|
Loading…
Reference in New Issue
Block a user