Landing page for a open specification for a new Saltpack based e2e encrypted messaging protocol and platform for secure communications with a focus on privacy, security and being self-hosted.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
446 B

# Build
FROM golang:alpine AS build
RUN apk add --no-cache -U build-base git make curl ca-certificates
RUN mkdir -p /src
# Copy Makefile
COPY Makefile ./
# Install deps
RUN make deps
# Copy content
COPY . .
# Build the site
RUN make build
# Runtime
FROM scratch
VOLUME /data
COPY --from=build /go/bin/static /static
COPY --from=build /src/.pub /data
ENTRYPOINT ["/static"]
CMD ["-r", "/data"]