Skip to content

Instantly share code, notes, and snippets.

# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/json max;
application/javascript max;
~image/ max;
}
# 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
@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
@inyee786
inyee786 / openebs-service-account.yaml
Created March 25, 2019 11:49
openebs clusterrole suse platfom
apiVersion: v1
kind: Namespace
metadata:
name: openebs
---
# Create Maya Service Account
apiVersion: v1
kind: ServiceAccount
metadata:
name: openebs-maya-operator
@inyee786
inyee786 / carts-db.yaml
Created February 28, 2019 10:15
muleshop for openshift
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: carts-db-claim
namespace: muleshop-cstor
spec:
storageClassName: pool1-default-sc
accessModes:
- ReadWriteOnce
resources: