Dockerfile 335 B

1234567891011121314
  1. FROM node:14-alpine AS build
  2. LABEL maintainer="Stille <[email protected]>"
  3. RUN apk add --update git
  4. RUN git clone https://github.com/stilleshan/subweb /app
  5. WORKDIR /app
  6. RUN npm install
  7. RUN npm run build
  8. FROM nginx:1.16-alpine
  9. COPY --from=build /app/dist /usr/share/nginx/html
  10. COPY . /app
  11. EXPOSE 80
  12. CMD [ "sh", "-c", "/app/start.sh" ]