2021-10-29 06:04:13 +02:00
|
|
|
FROM python:3.10-slim
|
2021-09-27 12:03:35 +02:00
|
|
|
|
|
|
|
RUN apt-get update
|
2021-11-02 09:51:44 +01:00
|
|
|
RUN apt-get install -y gcc
|
2021-09-27 12:03:35 +02:00
|
|
|
|
|
|
|
## 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-11-02 10:25:43 +01:00
|
|
|
# now copy all the files in this directory to /app
|
2021-09-27 12:03:35 +02:00
|
|
|
ADD . .
|
|
|
|
|
|
|
|
# Listen to port 80 at runtime
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
|
|
# Define our command to be run when launching the container
|
2022-11-02 10:25:43 +01:00
|
|
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|