You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
346 B
19 lines
346 B
# Fetching the latest node image on alpine linux
|
|
FROM node:alpine AS development
|
|
|
|
# Declaring env
|
|
ENV NODE_ENV development
|
|
|
|
# Setting up the work directory
|
|
WORKDIR /react-app
|
|
|
|
# Installing dependencies
|
|
COPY ./package*.json /react-app
|
|
|
|
RUN npm install
|
|
|
|
# Copying all the files in our project
|
|
COPY . .
|
|
|
|
# Starting our application
|
|
CMD ["npm","start] |