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

17 lines
411 B
Docker
Raw Normal View History

2018-12-10 19:15:21 -08:00
# Build fronend
2018-12-21 13:12:48 -08:00
FROM node:11-slim AS builder
2018-12-10 19:15:21 -08:00
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# Build nginx to host static files
FROM nginx:stable
2018-12-10 19:15:21 -08:00
COPY cmd/nginx/podsync.conf /etc/nginx/nginx.conf
2018-12-10 19:15:21 -08:00
COPY cmd/nginx/robots.txt /var/www/podsync/
COPY --from=builder /app/dist/html/ /var/www/podsync/
COPY --from=builder /app/dist/assets/ /var/www/podsync/assets/
2019-05-30 12:57:07 -07:00
COPY /assets/favicon.ico /var/www/podsync/