personal-website/Dockerfile

14 lines
310 B
Docker
Raw Permalink Normal View History

2023-06-08 10:29:27 -04:00
FROM python:3.11-bullseye AS dev
ADD pip-requirements.txt /tmp/pip-requirements.txt
RUN pip install -r /tmp/pip-requirements.txt \
&& rm /tmp/pip-requirements.txt
2023-06-08 10:29:27 -04:00
FROM dev as prod
2021-07-24 15:29:34 -04:00
# Bundle app source
2023-06-08 11:12:32 -04:00
COPY . /website
WORKDIR /website
2021-07-24 15:29:34 -04:00
EXPOSE 8090
2023-06-14 20:16:47 -04:00
ENTRYPOINT [ "/bin/bash", "/website/container_serve.sh" ]