hydroxide-docker/Dockerfile
Corbin Bartsch 1a73330ea7
Revert "repo move"
This reverts commit 2ee2af37582b35b5105a6bb2bb159e4e5353f4a8.
2022-08-20 09:14:12 -04: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" ]