Added db configurations and Dockerfile

This commit is contained in:
Fabio Scotto di Santolo
2025-06-03 18:17:47 +02:00
parent 0c17486015
commit eab9c25885
17 changed files with 889 additions and 51 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM golang:1.24.1-alpine3.21 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
# Specifica il path del main package
RUN CGO_ENABLED=0 GOOS=linux go build -o api ./cmd/fileserver
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/api .
COPY --from=builder /app/config/*.json ./config/
RUN ls -laR .
RUN apk --no-cache add ca-certificates
EXPOSE 8080
CMD ["./api"]