1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/cmd/nginx/Dockerfile

16 lines
355 B
Docker
Raw Normal View History

2018-12-10 19:15:21 -08:00
# Build fronend
FROM node:8-slim AS frontend_builder
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# Build nginx
FROM umputun/nginx-le:latest
COPY cmd/nginx/podsync.conf /etc/nginx/service.conf
COPY cmd/nginx/robots.txt /var/www/
COPY --from=frontend_builder /app/templates/ /var/www/
COPY --from=frontend_builder /app/dist/ /var/www/assets/