1 Star 0 Fork 195

严家纯 / goploy

forked from goploy / goploy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhenorzz 提交于 2023-08-17 09:52 . 1.15.2
# Import sql manually https://github.com/zhenorzz/goploy/blob/master/model/sql/goploy.sql
FROM alpine
LABEL maintainer="zhenorzz@gmail.com"
ARG GOPLOY_VER=v1.15.2
ENV GOPLOY_VER=${GOPLOY_VER}
ENV MYSQL_PORT=3306
RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories
RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories
#install
RUN apk update && \
apk add --no-cache \
openssh-client \
ca-certificates \
sshpass \
bash \
git \
rsync \
&& rm -rf /var/cache/apk/*
#git
RUN git config --global pull.rebase false
#goploy
ADD https://github.com/zhenorzz/goploy/releases/download/${GOPLOY_VER}/goploy /opt/goploy/
RUN chmod a+x /opt/goploy/goploy
EXPOSE 80
VOLUME ["/opt/goploy/repository/"]
WORKDIR /opt/goploy/
ENTRYPOINT /opt/goploy/goploy --asset-dir=/opt/goploy/repository
Go
1
https://gitee.com/yan-jiachun/goploy.git
git@gitee.com:yan-jiachun/goploy.git
yan-jiachun
goploy
goploy
master

搜索帮助