flask-htmx-board1/Dockerfile

21 lines
448 B
Docker
Raw Normal View History

2023-07-01 22:53:04 +10:00
# start by pulling the python image
FROM python:3.11-alpine
# copy the requirements file into the image
2023-07-12 01:57:15 +10:00
COPY ./reqs.txt /app/reqs0.txt
2023-07-01 22:53:04 +10:00
# switch working directory
WORKDIR /app
# install the dependencies and packages in the requirements file
2023-07-12 01:56:16 +10:00
RUN pip install -r reqs0.txt
2023-07-01 22:53:04 +10:00
# copy every content from the local file to the image
COPY . /app
# configure the container to run in an executed manner
ENTRYPOINT [ "python" ]
EXPOSE 5000
CMD ["app.py" ]