mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-02 01:56:28 +03:00
Add Dockerfile
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM docker.io/golang:alpine as builder
|
||||
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
|
||||
RUN apk add --no-cache --update go gcc g++
|
||||
RUN go build -o /src/yggmail ./cmd/yggmail
|
||||
|
||||
FROM docker.io/alpine
|
||||
COPY --from=builder /src/yggmail /usr/bin/yggmail
|
||||
|
||||
EXPOSE 1143/tcp
|
||||
EXPOSE 1025/tcp
|
||||
VOLUME /etc/yggmail
|
||||
|
||||
ENTRYPOINT ["/usr/bin/yggmail", "-database=/etc/yggmail/yggmail.db"]
|
||||
Reference in New Issue
Block a user