f51a8f8228
Changes included in this PR nginx-golang-mysql/backend/Dockerfile I recommend upgrading to alpine:3.14, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected. Some of the most important vulnerabilities in your base image include: Severity Priority Score / 1000 Issue Exploit Maturity high severity 400 Improper Handling of Exceptional Conditions SNYK-ALPINE312-BUSYBOX-1089799 No Known Exploit high severity 400 Improper Handling of Exceptional Conditions SNYK-ALPINE312-BUSYBOX-1089799 No Known Exploit
11 lines
211 B
Docker
Executable File
11 lines
211 B
Docker
Executable File
FROM golang:1.13-alpine AS build
|
|
WORKDIR /go/src/github.com/org/repo
|
|
COPY . .
|
|
|
|
RUN go build -o server .
|
|
|
|
FROM alpine:3.14
|
|
EXPOSE 8000
|
|
COPY --from=build /go/src/github.com/org/repo/server /server
|
|
CMD ["/server"]
|