mirror of
https://github.com/chylex/SMTP-Relay.git
synced 2024-11-24 11:42:52 +01:00
16 lines
355 B
Docker
16 lines
355 B
Docker
FROM golang:1.20-bookworm as build
|
|
ARG GOARCH="amd64"
|
|
|
|
COPY . /build_dir
|
|
WORKDIR /build_dir
|
|
RUN go build -v ./cmd/smtprelay
|
|
|
|
FROM debian:stable-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install ca-certificates && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=build /build_dir/smtprelay /usr/local/bin/smtprelay
|
|
ENTRYPOINT ["/usr/local/bin/smtprelay"]
|