Skip to content
Snippets Groups Projects
Commit 60a681b7 authored by ale's avatar ale
Browse files

Fully qualify container image URLs

parent f27f78d2
No related branches found
No related tags found
No related merge requests found
Pipeline #53998 passed with warnings
FROM node:current-bullseye AS assets FROM docker.io/library/node:current-bullseye AS assets
ADD . /src ADD . /src
WORKDIR /src WORKDIR /src
RUN npm install && env NODE_OPTIONS=--openssl-legacy-provider ./node_modules/.bin/webpack RUN npm install && env NODE_OPTIONS=--openssl-legacy-provider ./node_modules/.bin/webpack
# Debian bullseye can't build gostatic due to its strict dependency # Debian bullseye can't build gostatic due to its strict dependency
# on Go >1.17, so we build it separately. # on Go >1.17, so we build it separately.
FROM golang:1.19 AS gobuild FROM docker.io/library/golang:1.19 AS gobuild
RUN go install github.com/piranha/gostatic@latest RUN go install github.com/piranha/gostatic@latest
RUN go install git.autistici.org/ai/webtools/cmd/jsonsubst@latest RUN go install git.autistici.org/ai/webtools/cmd/jsonsubst@latest
RUN go install git.autistici.org/ai/webtools/cmd/sitesearch@latest RUN go install git.autistici.org/ai/webtools/cmd/sitesearch@latest
...@@ -19,7 +19,7 @@ COPY --from=gobuild /go/bin/jsonsubst /usr/bin/jsonsubst ...@@ -19,7 +19,7 @@ COPY --from=gobuild /go/bin/jsonsubst /usr/bin/jsonsubst
COPY --from=assets /src/assets/templates/ /src/assets/templates/ COPY --from=assets /src/assets/templates/ /src/assets/templates/
RUN ./scripts/lint.sh && ./scripts/update.sh RUN ./scripts/lint.sh && ./scripts/update.sh
FROM debian:bookworm-slim AS precompress FROM docker.io/library/debian:bookworm-slim AS precompress
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install brotli RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install brotli
COPY --from=build /src/public /var/www/autistici.org COPY --from=build /src/public /var/www/autistici.org
COPY --from=assets /src/assets/static/ /var/www/autistici.org/static/ COPY --from=assets /src/assets/static/ /var/www/autistici.org/static/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment