Rollback changes

This commit is contained in:
Valentin Brandl 2019-05-01 23:14:51 +02:00
parent 98335f9ba6
commit bd9ddcaaa2
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -3,8 +3,7 @@ WORKDIR /usr/src/build
COPY ./ ./ COPY ./ ./
RUN apk --no-cache add --update make RUN apk --no-cache add --update make
RUN /bin/drone-hugo && \ RUN /bin/drone-hugo && \
make -C public/ -f ../Makefile && \ make -C public/ -f ../Makefile
ls -lah public
# find ./ -type f \( \ # find ./ -type f \( \
# -name "*.html" \ # -name "*.html" \
# -o -name "*.js" \ # -o -name "*.js" \
@ -22,6 +21,5 @@ RUN /bin/drone-hugo && \
# Stage: Run # Stage: Run
FROM nginx:alpine FROM nginx:alpine
RUN rm /usr/share/nginx/html/*
COPY --from=build /usr/src/build/public /usr/share/nginx/html/ COPY --from=build /usr/src/build/public /usr/share/nginx/html/
EXPOSE 80 EXPOSE 80