vbrandl.net/Dockerfile
Valentin Brandl 98335f9ba6
All checks were successful
continuous-integration/drone/push Build is passing
Debug
2019-05-01 23:11:01 +02:00

28 lines
631 B
Docker

FROM plugins/hugo as build
WORKDIR /usr/src/build
COPY ./ ./
RUN apk --no-cache add --update make
RUN /bin/drone-hugo && \
make -C public/ -f ../Makefile && \
ls -lah public
# find ./ -type f \( \
# -name "*.html" \
# -o -name "*.js" \
# -o -name "*.css" \
# -o -name "*.xml" \
# -o -name "*.json" \
# -o -name "*.txt" \
# -o -name "*.png" \
# -o -name "*.ico" \
# -o -name "*.svg" \
# -not -name "*.gz" \) \
# -exec gzip -v -k -9 "{}" \;
# Stage: Run
FROM nginx:alpine
RUN rm /usr/share/nginx/html/*
COPY --from=build /usr/src/build/public /usr/share/nginx/html/
EXPOSE 80