Last active
January 7, 2020 15:56
-
-
Save scokmen/b9a55634229c73b18ede6d4318fb7efd to your computer and use it in GitHub Desktop.
Initial 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:12 | |
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