Skip to content

Instantly share code, notes, and snippets.

@scokmen
Last active January 6, 2020 21:26
Show Gist options
  • Save scokmen/7ff169ea6cc3549b96d3bd01ac0c0d30 to your computer and use it in GitHub Desktop.
Save scokmen/7ff169ea6cc3549b96d3bd01ac0c0d30 to your computer and use it in GitHub Desktop.
FROM node:12-alpine
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
# install dependencies
RUN yarn --frozen-lockfile
COPY . .
# lint & test
RUN yarn lint & yarn test
# build application
RUN yarn build
EXPOSE 3030
CMD [ "node", "./dist/Main.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment