You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use Dockerfile to Build Dev Environment(support hot reload)# Base imageFROM golang:1.22
# Set the working directory# --------------------WORKDIR /app
# COPY file# --------------------COPY go.mod .
COPY go.sum .
# Config Proxy# --------------------RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct
# https://mirrors.aliyun.com/goproxy/,direct# Install dependences# --------------------RUN go mod download
RUN export GOPATH=/go && go install github.com/silenceper/gowatch@latest && ls -al /go/bin
# go install github.com/silenceper/gowatch@latest# Add /go/bin to PATH# --------------------ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/go/bin
The text was updated successfully, but these errors were encountered:
可以做个Docker容器,或者完善一下Docker部分的文档(方便一下使用docker作为开发的开发者呗),这里放一个我自己用的dockerfile供参考(
感谢作者啦!
The text was updated successfully, but these errors were encountered: