1 Star 0 Fork 256

开源物联网平台/thingspanel-backend-community

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 431 Bytes
一键复制 编辑 原始数据 按行查看 历史
hezhuozhuo 提交于 2024-12-23 17:09 +08:00 . Fix:docker file修改
# 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 -o ThingsPanel-Go .
FROM alpine:latest
LABEL description="ThingsPanel Go Backend"
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/open-source-iot-platform/thingspanel-backend-community.git
git@gitee.com:open-source-iot-platform/thingspanel-backend-community.git
open-source-iot-platform
thingspanel-backend-community
thingspanel-backend-community
main

搜索帮助