feat: docker

This commit is contained in:
2025-03-28 13:50:10 +01:00
parent 86801ff8e0
commit 45696fd0a9
4 changed files with 33 additions and 1 deletions

17
Containerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM golang:alpine AS backend_build
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY . .
RUN go build -o /healthr
FROM alpine:edge AS backend
COPY --from=backend_build /healthr /healthr
EXPOSE 8090
CMD [ "/healthr" ]