add docker stuff
This commit is contained in:
parent
d00280d549
commit
ccc7a027ca
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
8
compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "48723:48723"
|
||||||
|
volumes:
|
||||||
|
- /mnt/storage/files:/app/files
|
||||||
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user