add registry

This commit is contained in:
2024-11-05 13:54:09 +03:00
parent ad6c15fde8
commit e7493276c9
4 changed files with 11 additions and 6 deletions

22
docker/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM fedora:latest
LABEL name="Tracd Standalone Server"
LABEL project="tracd"
EXPOSE 8055
ENV USER_UID=2000
ENV USER_GID=2000
RUN dnf -y install trac httpd-tools ;\
dnf -y clean all
RUN groupadd --gid $USER_GID trac ;\
useradd --shell /sbin/nologin --create-home --home-dir /home/trac --uid $USER_UID --gid $USER_GID trac
WORKDIR /home/trac
USER trac
#htpasswd .htpasswd user
CMD /usr/sbin/tracd --port 8055 --basic-auth="*,.htpasswd,realm" $(ls -d */)