1 Star 0 Fork 0

gaogao_qwq/go_course_table_crawler_server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 649 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM golang:1.20
ENV GO111MODULE="on" \
GOPROXY="https://goproxy.cn,direct" \
GIN_MODE="release"
# 更换国内源
COPY ./sources.list /etc/apt/sources.list
RUN apt-get update && apt-get install -y chromium
WORKDIR /usr/src/app
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -v -o /usr/bin/course_table_crawler
EXPOSE 56789
CMD ["/bin/sh", "-c", "/usr/bin/course_table_crawler -address $SERVER_ADDRESS -port $SERVER_PORT -loginurl $CRAWLER_LOGIN_URL -homeurl $CRAWLER_HOME_URL"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/gaogao-qwq/go_course_table_crawler_server.git
[email protected]:gaogao-qwq/go_course_table_crawler_server.git
gaogao-qwq
go_course_table_crawler_server
go_course_table_crawler_server
master

搜索帮助