1 Star 0 Fork 2

RaytionWu/SuperSign

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 878 Bytes
一键复制 编辑 原始数据 按行查看 历史
RaytionWu 提交于 2023-03-02 18:47 . update
FROM centos:7 AS builder-server
RUN yum install -y wget git make gcc \
&& wget https://studygolang.com/dl/golang/go1.16.6.linux-amd64.tar.gz \
&& tar -zxvf go1.16.6.linux-amd64.tar.gz -C /usr/local/
ENV GOROOT=/usr/local/go
ENV PATH=$PATH:$GOROOT/bin
RUN go env -w GO111MODULE=on \
&& go env -w GOPROXY=https://goproxy.cn,direct
WORKDIR /root/togettoyou/
COPY server/. .
RUN make
FROM node:lts-alpine AS builder-web
WORKDIR /app
COPY web/package*.json ./
RUN yarn install
COPY web/. .
RUN yarn run build:prod
FROM togettoyou/zsign:latest AS zsign
FROM centos:7
WORKDIR /root/togettoyou/
COPY --from=builder-server /root/togettoyou/ipashare ./
COPY --from=builder-server /root/togettoyou/conf/ ./conf/
COPY --from=builder-web /app/dist/ ./dist/
COPY --from=zsign /zsign/zsign /bin/zsign
RUN yum install -y openssl openssl-devel unzip zip
ENTRYPOINT ["./ipashare"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/raytionwu/SuperSign.git
git@gitee.com:raytionwu/SuperSign.git
raytionwu
SuperSign
SuperSign
master

搜索帮助