Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 6e6704e

Browse files
committed
adds Dockerfile
1 parent 1181b15 commit 6e6704e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM node:lts-alpine3.10 as builder
2+
3+
RUN apk add python3 make gcc libc-dev g++
4+
5+
WORKDIR /home/node/app
6+
7+
COPY package.json package.json
8+
COPY package-lock.json package-lock.json
9+
COPY src/ src/
10+
11+
ENV NODE_ENV=production
12+
13+
RUN npm install
14+
15+
COPY public/ public/
16+
RUN npm run-script build
17+
18+
FROM nginx:1.19.4-alpine
19+
20+
COPY --from=builder /home/node/app/build/ /usr/share/nginx/html

0 commit comments

Comments
 (0)