mailautoconf/Containerfile

20 lines
489 B
Text
Raw 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
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"]