Created
August 7, 2020 13:24
-
-
Save Filip3Dev/bbb1d9cafaa1df34569e2e2203aeccb9 to your computer and use it in GitHub Desktop.
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
# pull official base image | |
FROM node:13.12.0-alpine | |
# set working directory | |
WORKDIR /app | |
# add `/app/node_modules/.bin` to $PATH | |
ENV PATH /app/node_modules/.bin:$PATH | |
ENV last_commit H67JUIHGT | |
# install app dependencies | |
COPY package.json ./ | |
COPY package-lock.json ./ | |
RUN npm install --silent | |
RUN npm install react-scripts@3.4.1 -g --silent | |
# add app | |
COPY . ./ | |
# start app | |
CMD ["npm", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment