mirror of
https://github.com/len0rd/personal-website.git
synced 2025-09-07 14:47:43 -04:00
split dev and prod docker stages
This commit is contained in:
parent
4285425051
commit
b52ddcb0d8
2 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.11-bullseye
|
||||
FROM python:3.11-bullseye AS dev
|
||||
|
||||
ADD pip-requirements.txt /tmp/pip-requirements.txt
|
||||
RUN pip install -r /tmp/pip-requirements.txt \
|
||||
|
@ -21,9 +21,11 @@ RUN apt update \
|
|||
&& rm -rf drawio-amd64-${DRAWIO_VERSION}.deb
|
||||
ENV XVFB_DISPLAY ":42"
|
||||
|
||||
FROM dev as prod
|
||||
|
||||
# Bundle app source
|
||||
# COPY . .
|
||||
# RUN ablog build
|
||||
COPY . .
|
||||
RUN ablog build
|
||||
|
||||
EXPOSE 8090
|
||||
CMD [ "ablog", "serve", "-p", "8090" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue