mailautoconf/Containerfile

23 lines
518 B
Text
Raw Permalink Normal View History

2021-08-16 21:15:27 +02:00
FROM golang:1-alpine3.14 AS builder
2021-08-16 21:15:27 +02:00
COPY src/ /mailautoconf
WORKDIR /mailautoconf
RUN go build -o /mailautoconf/mailautoconf
2021-08-16 21:15:27 +02:00
FROM alpine:3.14
ENV UID=1426 \
GID=1426
2021-08-16 21:15:27 +02:00
RUN apk add --no-cache bash
COPY --from=builder /mailautoconf/mailautoconf /mailautoconf/mailautoconf
COPY --from=builder /mailautoconf/default-config /mailautoconf/default-config
COPY --from=builder /mailautoconf/templates /mailautoconf/templates
2021-08-16 21:15:27 +02:00
COPY ./entrypoint.sh /
RUN chmod +x /entrypoint.sh
2021-08-16 21:15:27 +02:00
EXPOSE 8010
ENTRYPOINT ["/entrypoint.sh"]