chore: add Dockerfile (#25)
Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
This commit is contained in:
parent
e8eaf8b9d8
commit
9c8e7728a2
|
|
@ -0,0 +1,18 @@
|
|||
FROM node:14-alpine as node-builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install app dependencies
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.20.1
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
COPY --from=node-builder /app/dist .
|
||||
Loading…
Reference in New Issue