build/Dockerfile aktualisiert
This commit is contained in:
parent
5b9d58b1a0
commit
556aa6413e
1 changed files with 5 additions and 8 deletions
|
@ -3,8 +3,12 @@ FROM ubuntu:22.04
|
||||||
ARG PACKAGE
|
ARG PACKAGE
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
EXPOSE 25/tcp
|
||||||
|
EXPOSE 80/tcp
|
||||||
|
EXPOSE 443/tcp
|
||||||
|
|
||||||
LABEL description="piler ubuntu jammy image" \
|
LABEL description="piler ubuntu jammy image" \
|
||||||
maintainer="Janos SUTO, sj@acts.hu" \
|
maintainer="Phil, phil@hackmi.ch" \
|
||||||
package="${PACKAGE}"
|
package="${PACKAGE}"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||||
|
@ -14,7 +18,6 @@ ENV DEBIAN_FRONTEND="noninteractive" \
|
||||||
|
|
||||||
COPY ${PACKAGE}_${TARGETARCH}.deb /
|
COPY ${PACKAGE}_${TARGETARCH}.deb /
|
||||||
|
|
||||||
# hadolint ignore=DL3008
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get -y --no-install-recommends install \
|
apt-get -y --no-install-recommends install \
|
||||||
wget openssl sysstat php8.1-cli php8.1-cgi php8.1-mysql php8.1-fpm php8.1-zip php8.1-ldap \
|
wget openssl sysstat php8.1-cli php8.1-cgi php8.1-mysql php8.1-fpm php8.1-zip php8.1-ldap \
|
||||||
|
@ -36,11 +39,6 @@ RUN apt-get update && \
|
||||||
|
|
||||||
VOLUME ["/etc/piler","/var/piler/store","/var/piler/manticore","/var/piler/imap","/var/piler/stat","/var/spool/cron/crontabs"]
|
VOLUME ["/etc/piler","/var/piler/store","/var/piler/manticore","/var/piler/imap","/var/piler/stat","/var/spool/cron/crontabs"]
|
||||||
|
|
||||||
EXPOSE 25/tcp
|
|
||||||
EXPOSE 80/tcp
|
|
||||||
EXPOSE 443/tcp
|
|
||||||
|
|
||||||
# Clean up APT when done.
|
|
||||||
RUN apt clean && \
|
RUN apt clean && \
|
||||||
apt autoremove && \
|
apt autoremove && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
@ -49,7 +47,6 @@ RUN sed -i '/imklog/ s/^/#/' /etc/rsyslog.conf
|
||||||
|
|
||||||
COPY start.sh /start.sh
|
COPY start.sh /start.sh
|
||||||
|
|
||||||
# chmod start.sh
|
|
||||||
RUN chmod a+x /start.sh
|
RUN chmod a+x /start.sh
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
|
|
Loading…
Reference in a new issue