wa-profile-api/Dockerfile
2023-10-13 15:07:50 +03:00

18 lines
508 B
Docker

FROM golang:1.21-alpine AS builder
WORKDIR /build
COPY ./ /build/
RUN apk update && \
apk add --no-cache ca-certificates tzdata make bash && \
update-ca-certificates && \
go version && \
cd /build && \
make build
FROM scratch
WORKDIR /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /build/wa-profile-api /wa-profile-api
EXPOSE 8090
ENTRYPOINT ["/wa-profile-api"]