feat: add docker

This commit is contained in:
axolotlmaid 2024-09-25 21:58:11 +01:00
parent 5c10dc7684
commit 81b7889d39
2 changed files with 15 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
data/

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM golang:1.23
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /backend ./cmd/backend
EXPOSE 8080
CMD [ "/backend" ]