Просмотр исходного кода

Deploy the site, not the source.

master
Chris Smith 5 лет назад
Родитель
Сommit
c3963ed0a2
1 измененных файлов: 2 добавлений и 1 удалений
  1. 2
    1
      Dockerfile

+ 2
- 1
Dockerfile Просмотреть файл

@@ -23,5 +23,6 @@ RUN hugo -b https://kb.chameth.com/ -v -s /tmp/site -d /tmp/hugo && \
23 23
 ##
24 24
 
25 25
 FROM nginx:mainline-alpine AS nginx
26
-COPY --from=hugo /tmp/site /usr/share/nginx/html
26
+RUN rm -rf /usr/share/nginx/html/*
27
+COPY --from=hugo /tmp/hugo /usr/share/nginx/html
27 28
 ADD nginx.conf /etc/nginx/nginx.conf

Загрузка…
Отмена
Сохранить