- FROM debian:latest
- RUN apt update && apt dist-upgrade -y
- RUN apt install git -y
- COPY gogs/gogs.sh /root
- RUN groupadd -g 1002 gogs
- RUN useradd -g gogs -u 1114 -s /bin/false -d /home/gogs gogs
- RUN chmod a+x /root/gogs.sh
- CMD ['/bin/bash','/root/gogs.sh']
|