hydroxide-docker/Dockerfile
2022-07-21 15:48:48 +02:00

20 lines
412 B
Docker

FROM golang:alpine as builder
RUN apk --update upgrade && \
apk --no-cache --no-progress add git
ENV GO111MODULE on
RUN git clone https://github.com/emersion/hydroxide/ /hydroxide
WORKDIR /hydroxide
RUN go build ./cmd/hydroxide
FROM alpine:latest
WORKDIR /hydroxide
COPY --from=builder /hydroxide/hydroxide .
ENV XDG_CONFIG_HOME /.config
ENTRYPOINT [ "/hydroxide/hydroxide", "-smtp-host", "0.0.0.0" ]