c3re-website-prod-server/Dockerfile

20 lines
467 B
Docker
Raw Permalink Normal View History

2024-01-18 16:21:22 +01:00
FROM debian:12
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y git hugo nginx build-essential unar wget
RUN rm -rf /var/www/html
RUN mkdir -p /var/www/html
WORKDIR /tmp
2024-09-23 20:33:02 +02:00
RUN wget https://github.com/tdewolff/minify/releases/download/v2.20.16/minify_linux_amd64.tar.gz
2024-01-18 16:21:22 +01:00
RUN unar minify*tar.gz
RUN mv minify_linux_amd64/minify /usr/local/bin
ADD index.html /var/www/html/
ADD starter /usr/local/bin/
EXPOSE 80
WORKDIR /repo
CMD /usr/local/bin/starter