awesome-compose/nginx-golang-mysql/backend/Dockerfile
Madhu Kumar f51a8f8228
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
2022-02-19 22:01:55 +01:00

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"]