dockerfiles/subweb/Dockerfile

15 lines
335 B
Docker
Raw Normal View History

2022-07-04 11:06:44 +08:00
FROM node:14-alpine AS build
LABEL maintainer="Stille <stille@ioiox.com>"
2022-08-05 14:42:34 +08:00
RUN apk add --update git
RUN git clone https://github.com/stilleshan/subweb /app
2022-07-04 11:06:44 +08:00
WORKDIR /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:22:45 +08:00
COPY . /app
2022-07-04 11:06:44 +08:00
EXPOSE 80
2022-07-11 16:22:45 +08:00
CMD [ "sh", "-c", "/app/start.sh" ]