mirror of
https://github.com/KevinMidboe/planetposen-mail.git
synced 2025-10-28 17:20:32 +00:00
* Build and publish to ghcr with drone CI * Sign drone config file * Updated build step name * Allow publish on this branch for testing * Try set image source label to ghcr * Update label image source structure * Remove git suffix of container source * Remove ci branch from allowed publish branches
21 lines
458 B
Docker
21 lines
458 B
Docker
# Build the project
|
|
FROM golang:1.19 as builder
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/KevinMidboe/planetposen-mail"
|
|
|
|
WORKDIR /go/src/github.com/kevinmidboe/planetposen-mail
|
|
ADD . .
|
|
|
|
RUN make build
|
|
# RUN make test
|
|
|
|
# Create production image for application with needed files
|
|
FROM golang:1.19-alpine
|
|
|
|
EXPOSE 8000
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
COPY --from=builder /go/src/github.com/kevinmidboe/planetposen-mail .
|
|
|
|
CMD ["./main"] |