1 Star 0 Fork 242

zhoulala/thingspanel-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 506 Bytes
一键复制 编辑 原始数据 按行查看 历史
hezhuozhuo 提交于 2022-12-20 16:25 . 更新docker配置
# syntax=docker/dockerfile:1
FROM golang:alpine AS builder
WORKDIR $GOPATH/src/app
ADD . ./
ENV GO111MODULE=on
ENV GOPROXY="https://goproxy.io"
RUN go build
FROM alpine:latest
ENV TP_PG_IP=172.19.0.4
ENV TP_PG_PORT=5432
ENV TP_MQTT_HOST=172.19.0.5:1883
ENV MQTT_HTTP_HOST=172.19.0.5:8083
ENV TP_REDIS_HOST=172.19.0.6:6379
ENV PLUGIN_HTTP_HOST=172.19.0.8:503
WORKDIR /go/src/app
COPY --from=builder /go/src/app .
EXPOSE 9999
RUN chmod +x ThingsPanel-Go
RUN pwd
RUN ls -lrt
ENTRYPOINT [ "./ThingsPanel-Go" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zhoulala/thingspanel-go.git
git@gitee.com:zhoulala/thingspanel-go.git
zhoulala
thingspanel-go
thingspanel-go
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385