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