Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Aug 24, 2024
1 parent 7368b5b commit f76991b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f76991b

Please sign in to comment.