containerize and add basic setup to backend

This commit is contained in:
2025-07-16 10:13:09 +01:00
parent faabae9ee0
commit a674f5641d
11 changed files with 256 additions and 4 deletions

13
backend/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM golang:1.24-alpine AS build
WORKDIR /app
COPY . .
RUN go build -o nuchat fergus.molloy.xyz/nuchat
FROM scratch
WORKDIR /app
COPY --from=build /app/nuchat .
ENTRYPOINT ["/app/nuchat"]