Skip to content

Commit

Permalink
Var in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcooper committed Oct 7, 2024
1 parent 6271f66 commit f597a9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Install and build node-related files for front-end
ARG NODE_VERSION=22
ARG DEBIAN_VERSION=bookworm
ARG NODE_VERSION=22
ARG PYTHON_VERSION=3.12


# Install and build node-related files for front-end
FROM "node:${NODE_VERSION}-${DEBIAN_VERSION}-slim" AS node-packages

COPY /tomato/static/vendor /vendor/
Expand All @@ -11,7 +12,7 @@ WORKDIR /vendor
RUN npm install


FROM "python:3.12-${DEBIAN_VERSION}" AS final
FROM "python:${PYTHON_VERSION}-${DEBIAN_VERSION}" AS final

ENV DJANGO_SETTINGS_MODULE=tomato.settings \
PYTHONDONTWRITEBYTECODE=1 \
Expand Down
5 changes: 4 additions & 1 deletion server/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM jonasal/nginx-certbot:5.4-alpine
ARG DOCKER_NGINX_CERTBOT_VERSION=5.4


FROM "jonasal/nginx-certbot:${DOCKER_NGINX_CERTBOT_VERSION}-alpine" AS final

ARG PIP_BREAK_SYSTEM_PACKAGES=1
ARG JINJANATOR_VERSION=24.3.0
Expand Down

0 comments on commit f597a9a

Please sign in to comment.