Landing page for salty.im 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.
https://salty.im/
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
34 lines
446 B
# Build
|
|
FROM golang:alpine AS build
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
RUN apk add --no-cache -U build-base git make curl ca-certificates
|
|
|
|
RUN mkdir -p /src
|
|
|
|
WORKDIR /src
|
|
|
|
# Copy Makefile
|
|
COPY Makefile ./
|
|
|
|
# Install deps
|
|
RUN make deps
|
|
|
|
# Copy content
|
|
COPY . .
|
|
|
|
# Build the site
|
|
RUN make build
|
|
|
|
# Runtime
|
|
FROM scratch
|
|
|
|
WORKDIR /
|
|
VOLUME /data
|
|
|
|
COPY --from=build /go/bin/static /static
|
|
COPY --from=build /src/.pub /data
|
|
|
|
ENTRYPOINT ["/static"]
|
|
CMD ["-r", "/data"]
|
|
|