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

Update Dockerfile

This commit is contained in:
Maksym Pavlenko
2019-06-02 18:02:28 -07:00
parent ae70d98924
commit dfb3e95285
3 changed files with 8 additions and 9 deletions

View File

@@ -1,9 +1,9 @@
# Build fronend
FROM node:11-slim AS builder
WORKDIR /app
COPY . .
WORKDIR /work
COPY ui/ .
RUN npm install
RUN npm run build
RUN npm run build -- --prod --aot
# Build nginx to host static files
FROM nginx:stable
@@ -11,6 +11,4 @@ FROM nginx:stable
COPY cmd/nginx/podsync.conf /etc/nginx/nginx.conf
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/
COPY /assets/favicon.ico /var/www/podsync/
COPY --from=builder /work/dist/ui/ /var/www/podsync/