1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/cmd/nginx/Dockerfile
Maksym Pavlenko 7c6cdeeb82 Migrate to gulp 4
2018-12-21 13:12:48 -08:00

16 lines
336 B
Docker

# Build fronend
FROM node:11-slim AS 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=builder /app/dist/html/ /var/www/
COPY --from=builder /app/dist/assets/ /var/www/assets/