Skip to content

Instantly share code, notes, and snippets.

View irebane's full-sized avatar
:octocat:

Ilia Rebane irebane

:octocat:
View GitHub Profile
@inyee786
inyee786 / Dockerfile
Last active May 1, 2023 08:45
Deploy SPA on Kubernetes
# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
FROM node:10.8.0 as build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY ./ /app/
ARG configuration=production
RUN npm run build -- --output-path=./dist/out --configuration $configuration
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx