1 Star 0 Fork 13

徐州市谦思信息科技研发中心/rainbond-console

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.allinone 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
barnettZQG 提交于 2021-07-22 11:32 . change version 5.3.2
ARG VERSION=V5.3-dev
FROM golang:1.14-stretch as builder
# ENV GOPROXY=https://goproxy.io
ENV CGO_ENABLED=1
ENV GOPATH=/go
RUN git clone -b main --depth=1 https://github.com/goodrain/cloud-adaptor /go/src/goodrain.com/cloud-adaptor
WORKDIR /go/src/goodrain.com/cloud-adaptor/
ARG LDFLAGS
RUN go build -ldflags "$LDFLAGS" -o /cloud-adaptor $PWD/cmd/cloud-adaptor
FROM rainbond/rainbond-ui:${VERSION}
ARG RELEASE_DESC=
LABEL author="zengqg@goodrain.com"
RUN mkdir -p /app/ui /usr/share/zoneinfo/Asia/ && \
apt-get update && apt-get install -y supervisor && rm -rf /var/lib/apt/lists/* && \
wget https://goodrain-pkg.oss-cn-shanghai.aliyuncs.com/pkg/helm && chmod +x helm && mv helm /usr/local/bin/ && \
mkdir -p /var/log/supervisor
COPY --from=builder /go/src/goodrain.com/cloud-adaptor/chart /app/chart
COPY --from=builder /cloud-adaptor /app/cloudadaptor
ADD . /app/ui
WORKDIR /app/ui
RUN chmod +x /app/ui/entrypoint.sh && \
mv /app/ui/supervisord.conf /etc/supervisor/supervisord.conf && \
mv /app/ui/rainbond.conf /etc/supervisor/conf.d/rainbond.conf && \
chmod +x /app/cloudadaptor && \
mv /dist/index.html /app/ui/www/templates/index.html && \
mkdir /app/ui/www/static/dists && \
cp -a /dist/* /app/ui/www/static/dists/ && \
rm -rf /dist \
&& mkdir /app/logs \
&& mkdir /app/data \
&& mkdir /root/.ssh \
&& python -m pip install --upgrade pip \
&& pip install -r requirements.txt \
&& python manage.py collectstatic --noinput --ignore weavescope-src --ignore drf-yasg --ignore rest_framework\
&& rm -rf /root/.cache \
&& rm -rf /tmp/* \
&& rm -rf /app/ui/www/static/www/weavescope
ENV PORT 7070
ENV IS_OPEN_API=true
ENV RELEASE_DESC=${RELEASE_DESC}
ENV HOME_DIR=/app
# cloud adaptor
ENV DB_PATH=/app/data/cloudadaptor
ENV CHART_PATH=/app/chart
ENV CONFIG_DIR=/app/data/cloudadaptor
ENV HELM_PATH=/usr/local/bin/helm
ENV MYSQL_DB=console
VOLUME /app/data
VOLUME /app/logs
VOLUME /root/.ssh
CMD ["/usr/bin/supervisord"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qsgo/rainbond-console.git
git@gitee.com:qsgo/rainbond-console.git
qsgo
rainbond-console
rainbond-console
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385