Update Dockerfile

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
This commit is contained in:
Madhu Kumar 2022-02-19 22:01:55 +01:00 committed by GitHub
parent 6531426a96
commit f51a8f8228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ COPY . .
RUN go build -o server . RUN go build -o server .
FROM alpine:3.12 FROM alpine:3.14
EXPOSE 8000 EXPOSE 8000
COPY --from=build /go/src/github.com/org/repo/server /server COPY --from=build /go/src/github.com/org/repo/server /server
CMD ["/server"] CMD ["/server"]