Skip to content

Instantly share code, notes, and snippets.

@th3hunt
Last active October 31, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save th3hunt/7496f83dcd5d8d058359a51c5ab819c7 to your computer and use it in GitHub Desktop.
Save th3hunt/7496f83dcd5d8d058359a51c5ab819c7 to your computer and use it in GitHub Desktop.
Sample Dockerfile
FROM node:8-alpine
EXPOSE 3000
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
RUN apk add --update curl && rm -rf /var/cache/apk/*
RUN mkdir /app
WORKDIR /app
ADD package.json yarn.lock /app/
RUN yarn --pure-lockfile
ADD . /app
CMD ["yarn", "docker:start"]
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: test-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /testpath
backend:
serviceName: test
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment