mirror of
https://github.com/stilleshan/subweb.git
synced 2026-06-05 21:07:12 +08:00
add Dockerfile
This commit is contained in:
parent
e2560c64a4
commit
a64b8ce6fa
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM node:14-alpine AS build
|
||||
LABEL maintainer="Stille <stille@ioiox.com>"
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.16-alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD [ "nginx", "-g", "daemon off;" ]
|
||||
Loading…
Reference in New Issue
Block a user