mirror of
https://github.com/KevinMidboe/planetposen-mail.git
synced 2025-10-29 17:50:32 +00:00
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386 - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-6913411 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-7249236 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-7249265
21 lines
460 B
Docker
21 lines
460 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.24.0-alpine
|
|
|
|
EXPOSE 8000
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
COPY --from=builder /go/src/github.com/kevinmidboe/planetposen-mail .
|
|
|
|
CMD ["./main"] |