subweb/Dockerfile

16 lines
283 B
Docker
Raw Permalink Normal View History

2022-07-01 16:01:41 +08:00
FROM node:14-alpine AS build
LABEL maintainer="Stille <stille@ioiox.com>"
2023-12-13 17:31:39 +08:00
ENV VERSION 2.0
2023-12-13 10:19:54 +08:00
2022-07-01 16:01:41 +08:00
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
2022-07-11 16:17:01 +08:00
COPY . /app
2022-07-01 16:01:41 +08:00
EXPOSE 80
2022-07-11 16:17:01 +08:00
CMD [ "sh", "-c", "/app/start.sh" ]