1 Star 0 Fork 242

ningnanping/thingspanel-go_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 550 Bytes
一键复制 编辑 原始数据 按行查看 历史
hezhuozhuo 提交于 2023-08-02 14:25 . 修改dockerfile时区位置
# 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
RUN apk update && apk add --no-cache tzdata
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/ningnannping/thingspanel-go_1.git
git@gitee.com:ningnannping/thingspanel-go_1.git
ningnannping
thingspanel-go_1
thingspanel-go_1
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385