add docker stuff

This commit is contained in:
Alexandru 2024-09-18 22:13:25 +03:00
parent d00280d549
commit ccc7a027ca
2 changed files with 21 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM golang:1.20-alpine
RUN apk add --no-cache git
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o main .
EXPOSE 48723
CMD ["./main"]

8
compose.yml Normal file
View File

@ -0,0 +1,8 @@
services:
web:
build: .
ports:
- "48723:48723"
volumes:
- /mnt/storage/files:/app/files
restart: unless-stopped