Last active
October 31, 2018 08:37
-
-
Save th3hunt/7496f83dcd5d8d058359a51c5ab819c7 to your computer and use it in GitHub Desktop.
Sample Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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