13 lines
521 B
Docker
13 lines
521 B
Docker
ARG ARCH
|
|
FROM harbor.colben.cn/general/photon$ARCH
|
|
MAINTAINER Colben colbenlee@gmail.com
|
|
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"]
|
|
|