This commit is contained in:
Mateusz Gruszczyński
2025-11-04 10:02:43 +01:00
parent b85efadd87
commit 1c6ecb9230

View File

@@ -11,27 +11,18 @@ LABEL maintainer="HAProxy Manager" \
# ===== INSTALL SYSTEM DEPENDENCIES ===== # ===== INSTALL SYSTEM DEPENDENCIES =====
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
# HAProxy & SSL
haproxy \ haproxy \
openssl \ openssl \
ca-certificates \ ca-certificates \
\
# Supervisord
supervisor \ supervisor \
\
# Utilities
curl \ curl \
wget \ wget \
git \ git \
vim \ vim \
\
# Development (for cryptography)
libssl-dev \ libssl-dev \
libffi-dev \ libffi-dev \
python3-dev \ python3-dev \
build-essential \ build-essential \
\
# Cleanup
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& apt-get clean && apt-get clean
@@ -71,11 +62,11 @@ RUN mkdir -p /app/instance \
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
# ===== SET PERMISSIONS ===== # ===== SET PERMISSIONS (POPRAWIONE - && ВЕЗДЕ!) =====
RUN chmod +x /entrypoint.sh && \ RUN chmod +x /entrypoint.sh && \
chmod 755 /app && \ chmod 755 /app && \
chmod -R 755 /app/uploads \ chmod -R 755 /app/uploads && \
chmod -R 755 /app/backups \ chmod -R 755 /app/backups && \
chmod -R 755 /app/logs chmod -R 755 /app/logs
# ===== EXPOSE PORTS ===== # ===== EXPOSE PORTS =====