Skip to content

Instantly share code, notes, and snippets.

@ahndmal
Created August 27, 2021 11:34
Show Gist options
  • Save ahndmal/0e477b92feaba405d1499d6336db18a3 to your computer and use it in GitHub Desktop.
Save ahndmal/0e477b92feaba405d1499d6336db18a3 to your computer and use it in GitHub Desktop.
FROM node:lts-alpine as build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
COPY server/nginx.conf /etc/nginx/conf.d/default.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment