misen place back
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.26
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Installation de 'air' pour le hot-reloading
|
||||
RUN go install github.com/air-verse/air@latest
|
||||
|
||||
# Copie des fichiers de dépendances en premier (bonne pratique pour le cache Docker)
|
||||
COPY go.mod ./
|
||||
# Si vous avez un go.sum, décommentez la ligne ci-dessous :
|
||||
# COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# Copie du reste du code
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Au lieu de compiler manuellement, on lance 'air'
|
||||
CMD ["air"]
|
||||
Reference in New Issue
Block a user