24 lines
640 B
Docker
24 lines
640 B
Docker
FROM debian:bookworm-slim
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update \
|
|
&& 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"
|
|
|
|
COPY apache.conf /etc/apache2/conf-enabled/reprepro.conf
|
|
|
|
WORKDIR /reprepro
|
|
COPY entrypoint.sh ./
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT [ "/reprepro/entrypoint.sh" ]
|
|
CMD ["apachectl", "-D", "FOREGROUND"]
|