2023-11-22 20:29:50 +00:00
|
|
|
FROM docker.io/library/nginx:alpine
|
|
|
|
|
2023-12-31 16:54:48 +00:00
|
|
|
RUN apk add git
|
|
|
|
|
|
|
|
RUN apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache hugo
|
2023-11-22 20:29:50 +00:00
|
|
|
|
2023-11-23 16:56:13 +00:00
|
|
|
RUN mkdir -p /opt/compute4change-news
|
2023-11-22 20:29:50 +00:00
|
|
|
|
2023-11-23 16:56:13 +00:00
|
|
|
COPY . /opt/compute4change-news
|
2023-11-22 20:29:50 +00:00
|
|
|
|
|
|
|
WORKDIR /opt/compute4change-news
|
|
|
|
|
2023-11-23 16:58:03 +00:00
|
|
|
RUN git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1
|
2023-11-22 21:14:30 +00:00
|
|
|
|
2023-11-22 20:29:50 +00:00
|
|
|
RUN hugo
|
|
|
|
|
2023-11-22 20:32:28 +00:00
|
|
|
RUN cp -r public/* /usr/share/nginx/html
|