dashboard/backend/Dockerfile

34 lines
807 B
Text
Raw Normal View History

2022-10-21 12:44:04 +02:00
FROM python:3.10-slim
RUN apt-get update
RUN apt-get install -y gcc
## make a local directory
RUN mkdir /app
# set "app" as the working directory from which CMD, RUN, ADD references
WORKDIR /app
# copy requirements.txt to /app
ADD requirements.txt .
# pip install the local requirements.txt
RUN pip install -r requirements.txt
2022-10-25 17:07:32 +02:00
<<<<<<< HEAD
2022-10-25 12:24:51 +02:00
# now copy all the files in this directory to /app
2022-10-25 17:07:32 +02:00
=======
2021-09-27 12:03:35 +02:00
# now copy all the files in this directory to /code
2022-10-25 17:07:32 +02:00
>>>>>>> main
2022-10-21 12:44:04 +02:00
ADD . .
# Listen to port 80 at runtime
EXPOSE 5000
# Define our command to be run when launching the container
2022-10-25 17:07:32 +02:00
<<<<<<< HEAD
ENTRYPOINT [ "/app/entrypoint.sh" ]
=======
2021-09-27 12:03:35 +02:00
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:5000", "--workers", "4", "--reload", "--capture-output", "--enable-stdio-inheritance", "--log-level", "DEBUG"]
2022-10-25 17:07:32 +02:00
>>>>>>> main