Files
web_ylsa/api_iris/Dockerfile
2025-07-11 16:54:11 +08:00

15 lines
207 B
Docker

FROM golang:1.22.4
RUN mkdir -p /web \
&& mkdir /web/logs
ENV GOPATH=/web
ENV GOPROXY=https://goproxy.cn,direct
WORKDIR $GOPATH/api_iris
COPY . $GOPATH/api_iris
RUN go build .
ENTRYPOINT ["./main"]