Skip to content

Commit 77e34c2

Browse files
authored
Merge pull request #25 from Poonam1607/main
dockerfile added
2 parents 50e5132 + a54a4b1 commit 77e34c2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Fetching the latest node image on alpine linux
2+
FROM node:alpine
3+
4+
# Setting up the work directory
5+
WORKDIR /react-app
6+
7+
# Installing dependencies
8+
COPY ./package.json /react-app
9+
RUN npm install
10+
11+
# Copying all the files in our project
12+
COPY . .
13+
14+
# Expose port 3000
15+
EXPOSE 3000
16+
17+
# Starting our application
18+
CMD npm start

0 commit comments

Comments
 (0)