vbrandl.net/Dockerfile

27 lines
607 B
Docker
Raw Normal View History

2019-04-22 12:24:21 +02:00
FROM plugins/hugo as build
WORKDIR /usr/src/build
COPY ./ ./
RUN apk --no-cache add --update make
RUN /bin/drone-hugo && \
2019-05-01 23:14:51 +02:00
make -C public/ -f ../Makefile
2019-04-22 12:24:21 +02:00
# 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
2019-05-01 23:24:40 +02:00
RUN rm /usr/share/nginx/html/*
2019-05-01 22:57:04 +02:00
COPY --from=build /usr/src/build/public /usr/share/nginx/html/
2019-04-22 12:24:21 +02:00
EXPOSE 80