update
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
ARG ARCH
|
||||
FROM harbor.colben.cn/general/alpine$ARCH
|
||||
FROM harbor.colben.cn/general/photon$ARCH
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
ADD --chown=root:root /ADD/ /opt/
|
||||
RUN sed -i -e '/testing/d' -e 's/edge/latest-stable/' /etc/apk/repositories \
|
||||
&& apk update \
|
||||
&& apk add --no-cache gitea \
|
||||
&& sed -i 's,/ash,/bash,' /etc/passwd \
|
||||
&& cd /var/lib \
|
||||
&& mv /etc/gitea gitea/custom/conf \
|
||||
&& tar zcf gitea.tgz gitea/ \
|
||||
&& rm -rf /var/cache/apk/* gitea/*
|
||||
ADD --chown=root:root /ADD/ccmd /opt/
|
||||
ADD --chown=root:root /ADD/gitea /usr/bin/gitea
|
||||
RUN tdnf makecache \
|
||||
&& tdnf -y install git \
|
||||
&& rm -rf /var/cache/tdnf \
|
||||
&& useradd -m -U gitea \
|
||||
&& mkdir -p /opt/gitea/{attachments,custom,data,repos,indexers,lfs,log}
|
||||
CMD ["/opt/ccmd"]
|
||||
|
||||
|
Reference in New Issue
Block a user