Last active
July 21, 2020 21:55
-
-
Save oneteamai/ea488b5213bc780fbbacf1351e283b5b to your computer and use it in GitHub Desktop.
Initial Dockerfile that results in a 2.1GB image
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
# base image | |
FROM node:13.10.1-alpine | |
# set working directory | |
WORKDIR /app | |
COPY . . | |
ENV PATH /app/node_modules/.bin:$PATH | |
# install | |
COPY package.json /app/package.json | |
RUN apk add yarn | |
RUN yarn install --production | |
RUN yarn build | |
RUN yarn global add serve | |
# start app | |
CMD serve -s build -l 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
changed name