Merge pull request 'Mettre à jour Dockerfile' (#26) from feature/update-dockerfile into main
Reviewed-on: #26
This commit is contained in:
commit
b9990708fe
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19.1 as build
|
FROM golang:1.20.2 as build
|
||||||
|
|
||||||
LABEL author="vlbeaudoin"
|
LABEL author="vlbeaudoin"
|
||||||
|
|
||||||
|
@ -8,16 +8,16 @@ COPY go.mod go.sum main.go server.go ./
|
||||||
|
|
||||||
ADD public/ public/
|
ADD public/ public/
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o agecem-org .
|
||||||
|
|
||||||
# Alpine
|
# Alpine
|
||||||
|
|
||||||
FROM alpine:3.17.1
|
FROM alpine:3.17.2
|
||||||
|
|
||||||
RUN apk update && apk add file --no-cache && apk upgrade --no-cache
|
RUN apk update && apk upgrade --no-cache
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build /go/src/app ./
|
COPY --from=build /go/src/app/agecem-org /usr/bin/agecem-org
|
||||||
|
|
||||||
CMD ["./app"]
|
CMD ["agecem-org"]
|
||||||
|
|
Loading…
Reference in a new issue