Ai
1 Star 0 Fork 43

cl5/rttys

forked from 赵建辉/rttys 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 486 Bytes
一键复制 编辑 原始数据 按行查看 历史
zusicheng 提交于 2019-11-04 16:33 +08:00 . Docker: Update for building PAM
FROM node
WORKDIR /build
COPY ./html ./
RUN npm install && npm run build
FROM golang:alpine
WORKDIR /build
COPY . ./
COPY --from=0 /build/dist /build/dist
RUN apk update && \
apk add git gcc linux-pam-dev libc-dev && \
go get -v github.com/rakyll/statik && \
statik -src=/build/dist && \
go build -ldflags "-w -s"
FROM alpine
WORKDIR /rttys
RUN apk update && \
apk add --no-cache linux-pam-dev
COPY --from=1 /build/rttys /rttys/rttys
ENTRYPOINT ["/rttys/rttys"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/dadba/rttys.git
git@gitee.com:dadba/rttys.git
dadba
rttys
rttys
master

搜索帮助