agecem-org/Dockerfile
Victor Lacasse-Beaudoin d5b9b5202c Retirer package data/
Utiliser client minio-go directement dans les handlers.

Un package api/ pourra être ajouté pour avoir un client API de
agecem-org, mais dédoubler un minio-go#Client dans un object data#Client
est simplement redondant.
2023-04-21 18:51:20 -04:00

25 lines
424 B
Docker

FROM golang:1.20.2 as build
LABEL author="Victor Lacasse-Beaudoin <vlbeaudoin@agecem.org>"
WORKDIR /go/src/app
COPY go.mod go.sum main.go ./
ADD public/ public/
ADD cmd/ cmd/
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o agecem-org .
# Alpine
FROM alpine:3.17.2
RUN apk update && apk upgrade --no-cache
WORKDIR /app
COPY --from=build /go/src/app/agecem-org /usr/bin/agecem-org
CMD ["agecem-org", "server"]