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.
themis/Dockerfile

18 lines
655 B

FROM golang:1.19 as builder
WORKDIR /app
COPY . .
RUN go build -o ./bin ./cmd/...
FROM ubuntu:22.04 as litestream
WORKDIR /download
RUN apt update -y && apt install -y wget tar
RUN wget https://github.com/benbjohnson/litestream/releases/download/v0.3.9/litestream-v0.3.9-linux-amd64.tar.gz; \
tar -zxf litestream-v0.3.9-linux-amd64.tar.gz;
FROM ubuntu:22.04
WORKDIR /themis
COPY --from=builder /app/bin/themis-server /usr/local/bin/themis-server
COPY --from=litestream /download/litestream /usr/local/bin/litestream
COPY --from=builder /app/start.sh ./start.sh
RUN apt update -y; apt install -y ca-certificates; apt-get clean
ENTRYPOINT ["./start.sh"]