This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:1.23.3
|
||||
RUN mkdir /data
|
||||
COPY data/* /data
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /go-ddns
|
||||
EXPOSE 8080
|
||||
CMD ["/go-ddns"]
|
||||
Reference in New Issue
Block a user