Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Use a Node.js base image to compile the website
FROM node:latest as build-stage
FROM node:latest AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN node BuildDist.cjs --local
# Use nginx to serve the compiled website
FROM nginx:stable-alpine as production-stage
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
# Copy over the custom nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf
Expand All @@ -15,4 +15,4 @@ COPY nginx.conf /etc/nginx/nginx.conf
# COPY certs/cert.key /etc/ssl/private/cert.key
# RUN update-ca-certificates
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]