FROM python:3.8
ENV MONGODB_CONNSTRING="mongodb://localhost:27017"
COPY ./app_atlas.py /deploy/
COPY ./requirements.txt /deploy/
COPY ./templates /deploy/templates/
COPY ./static/css /deploy/static/css/
WORKDIR /deploy/
RUN pip3 install -r requirements.txt
EXPOSE 5000
ENTRYPOINT ["python", "app_atlas.py"]
FROM python:3.8
COPY ./app_atlas.py /deploy/
Copying the requirements.txt file from the local directory to the /deploy directory in the container
COPY ./requirements.txt /deploy/
Copying the contents of the templates directory from the local directory to the /deploy/templates directory in the container
COPY ./templates /deploy/templates/
Copying the contents of the static/css directory from the local directory to the /deploy/static/css directory in the container
COPY ./static/css /deploy/static/css/
WORKDIR /deploy/
RUN pip3 install -r requirements.txt
EXPOSE 80
ENTRYPOINT ["python", "app_atlas.py"]