Skip to content

Commit 17f33cc

Browse files
author
unisbadri
committed
adding docker-entrypoint.sh and Dockerfile
1 parent 46dce1a commit 17f33cc

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:14.16.0-alpine3.13
2+
3+
ENV REACTJS_HOME=/app
4+
5+
RUN mkdir -p $REACTJS_HOME
6+
7+
WORKDIR $REACTJS_HOME
8+
9+
COPY . $REACTJS_HOME
10+
11+
# install dependencies
12+
RUN npm install -g serve
13+
14+
RUN npm install
15+
RUN npm build
16+
17+
EXPOSE 3000
18+
19+
ENTRYPOINT ["./docker-entrypoint.sh"]

docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
serve -l tcp://0.0.0.0:3000 /app/build

0 commit comments

Comments
 (0)