Add comments
This commit is contained in:
25
api-server-multistage/Dockerfile
Normal file
25
api-server-multistage/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
FROM python:3.11-slim-bookworm
|
||||
|
||||
# set virtual env path
|
||||
ENV \
|
||||
PATH=/venv/bin:$PATH
|
||||
|
||||
# does nothing, for documentation only
|
||||
EXPOSE 3000
|
||||
|
||||
# create and set main app directory
|
||||
WORKDIR /app
|
||||
|
||||
# copy app files to /app directory
|
||||
COPY ./app .
|
||||
|
||||
# install dependencies
|
||||
RUN \
|
||||
python -m venv /venv && \
|
||||
pip install -r requirements.txt
|
||||
|
||||
# start shell script when container starts
|
||||
ENTRYPOINT ["/app/run.sh"]
|
||||
|
||||
# no additional parameters to run.sh script
|
||||
CMD []
|
||||
Reference in New Issue
Block a user