2023-05-09 16:24:39 +00:00
|
|
|
FROM --platform=amd64 nginx:1.23-alpine@sha256:6318314189b40e73145a48060bff4783a116c34cc7241532d0d94198fb2c9629
|
|
|
|
EXPOSE 80
|
2023-09-15 06:48:25 +00:00
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
2023-05-09 16:24:39 +00:00
|
|
|
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
COPY ./dist-result/ /usr/share/nginx/html/
|
|
|
|
RUN apk add --no-cache go-ipfs==0.16.0-r6 \
|
|
|
|
&& ipfs init \
|
2023-05-11 13:42:35 +00:00
|
|
|
&& echo "$(ipfs add -rQ /usr/share/nginx/html)" > /ipfs-hash \
|
2023-05-09 16:24:39 +00:00
|
|
|
&& echo "ipfs hash of this build: $(cat /ipfs-hash)"
|
|
|
|
|