Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Created February 17, 2023 02:58
Show Gist options
  • Save mrbusche/3d17ab56f02efff010306e70a996d915 to your computer and use it in GitHub Desktop.
Save mrbusche/3d17ab56f02efff010306e70a996d915 to your computer and use it in GitHub Desktop.
docker build for webapp
FROM node:18 as builder
WORKDIR /workspace
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build:prod -- --output-path=/webapp
FROM nginx:1.23
COPY --from=builder /webapp /app
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment