From f76991b8d77ccd74f56916983206c5db851eeb33 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Sat, 24 Aug 2024 15:52:12 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5c852d8..1af7760 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,19 @@ +FROM node:16-alpine AS builder + +WORKDIR /usr/src/taumc_website + +COPY package*.json ./ +RUN npm install + +COPY . . + +ENV ELEVENTY_ENV=production +ENV BASE_URL="https://www.taumc.org/" + +RUN npm run build + FROM nginx:alpine -COPY _site /usr/share/nginx/html +COPY --from=builder /usr/src/taumc_website/_site /usr/share/nginx/html EXPOSE 80