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