Skip to content
Snippets Groups Projects
Commit 31f89e4c authored by ale's avatar ale
Browse files

Build gostatic separately

parent 4bcc633e
Branches
No related tags found
No related merge requests found
# Debian bullseye can't build gostatic due to its strict dependency
# on Go 1.16, so we build it separately.
FROM golang:1.16 AS gobuild
RUN go get github.com/piranha/gostatic
FROM debian:bullseye AS build FROM debian:bullseye AS build
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends rsync git golang ca-certificates RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends rsync git golang ca-certificates
ADD . /src ADD . /src
WORKDIR /src WORKDIR /src
COPY --from=gobuild /go/bin/gostatic /usr/bin/gostatic
RUN ./scripts/lint.sh && ./scripts/update.sh RUN ./scripts/lint.sh && ./scripts/update.sh
FROM registry.git.autistici.org/ai3/docker/apache2-base:master FROM registry.git.autistici.org/ai3/docker/apache2-base:master
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment