Skip to content

Instantly share code, notes, and snippets.

@electric380v
Last active July 4, 2019 07:49
Show Gist options
  • Save electric380v/91c96e9bc9dded054eb1977aaff65669 to your computer and use it in GitHub Desktop.
Save electric380v/91c96e9bc9dded054eb1977aaff65669 to your computer and use it in GitHub Desktop.
dockerfile
FROM node:latest as builder
ENV APP_HOST=0.0.0.0
ENV APP_PORT=3001
ENV APP_HOME /app
WORKDIR /app
COPY . .
ARG user=places-proxy
ARG group=places-proxy
ARG uid=11111
ARG gid=22222
RUN yarn && \
yarn install && \
yarn build
EXPOSE "$APP_PORT"
CMD [ "yarn", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment