shelfy-v2/Dockerfile

20 lines
309 B
Docker
Raw Normal View History

2025-08-18 16:42:39 +00:00
FROM golang:1.24
WORKDIR /app
# Copie les fichiers de dépendances Go
2025-07-27 14:26:30 +00:00
COPY go.mod go.sum ./
RUN go mod download
2025-08-18 16:42:39 +00:00
# Copie tout le reste (code + web + assets)
2025-07-27 14:26:30 +00:00
COPY . .
2025-08-18 16:42:39 +00:00
# Build de ton binaire
RUN go build -o shelfy .
# Expose les ports nécessaires
EXPOSE 8080 2121
# Commande de lancement
CMD ["./shelfy"]