mirror of
https://github.com/KevinMidboe/planetposen-images.git
synced 2025-10-29 13:20:11 +00:00
Dockerfile and drone config for build & publish to ghcr
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
# Build the project
|
||||
FROM golang:1.19 as builder
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/KevinMidboe/planetposen-images"
|
||||
|
||||
WORKDIR /go/src/github.com/kevinmidboe/planetposen-images
|
||||
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-images .
|
||||
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user