regroup backend and frontend in app folder

This commit is contained in:
Blomios
2026-03-07 19:16:14 +01:00
parent 66c72f46a2
commit b5bc405771
28315 changed files with 206 additions and 3227368 deletions

22
app/backend/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM golang:1.24 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go mod tidy
RUN go build -o backend .
FROM debian:bookworm-slim
WORKDIR /app
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/backend .
COPY --from=builder /app/sql ./sql
EXPOSE 8080
CMD ["./backend"]