2024-07-03 11:42:22 +00:00
|
|
|
FROM debian:bookworm-slim
|
2020-01-16 14:09:47 +00:00
|
|
|
|
2024-07-03 11:42:22 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2020-01-16 14:09:47 +00:00
|
|
|
RUN apt-get update \
|
2024-07-03 11:42:22 +00:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
apache2 \
|
|
|
|
reprepro \
|
|
|
|
openssh-server \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& . /etc/apache2/envvars \
|
|
|
|
&& ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log" \
|
|
|
|
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
|
|
|
|
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"
|
2020-01-16 14:09:47 +00:00
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
WORKDIR /var/lib/reprepro
|
|
|
|
EXPOSE 80
|
2024-07-03 11:42:22 +00:00
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
RUN groupadd -g 600 reprepro \
|
|
|
|
&& useradd -d /var/lib/reprepro -u 600 -g 600 -m -s /bin/bash reprepro
|
2024-07-03 11:42:22 +00:00
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
COPY apache-conf.conf /etc/apache2/conf-available/reprepro.conf
|
|
|
|
COPY apache-site.conf /etc/apache2/sites-available/reprepro.conf
|
|
|
|
|
|
|
|
RUN a2enconf reprepro \
|
|
|
|
&& a2ensite reprepro \
|
|
|
|
&& a2dissite 000-default
|
|
|
|
|
|
|
|
COPY entrypoint.sh /
|
2024-07-03 11:42:22 +00:00
|
|
|
|
2024-07-09 09:30:13 +00:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
2024-07-03 11:42:22 +00:00
|
|
|
CMD ["apachectl", "-D", "FOREGROUND"]
|