Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created March 16, 2022 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/562ac3f29ddacd27aa77e3717e9d85d2 to your computer and use it in GitHub Desktop.
Save Hkazanci93/562ac3f29ddacd27aa77e3717e9d85d2 to your computer and use it in GitHub Desktop.
# 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
# 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