Implement docker build
This commit is contained in:
parent
011d348a8f
commit
030f857f15
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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
|
||||||
|
# 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
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
COPY --from=build /usr/src/build/public ./
|
||||||
|
EXPOSE 80
|
Loading…
Reference in New Issue
Block a user