Implement proper Cloudron structure with supervisor

This commit is contained in:
Andreas Dueren
2025-06-20 10:25:43 -06:00
parent 90e7f6b2e9
commit 9c2ef507c0
6 changed files with 32 additions and 67 deletions

View File

@ -1,27 +1,22 @@
FROM pentacent/keila:0.14
FROM cloudron/base:4.2.0
# Install Cloudron requirements
USER root
RUN addgroup --gid 1000 cloudron && adduser --disabled-password --gecos "" --uid 1000 --gid 1000 cloudron
# Install additional packages
# Install runtime dependencies
RUN apt-get update && apt-get install -y \
nginx \
postgresql-client \
sudo \
supervisor \
&& rm -rf /var/lib/apt/lists/*
# Setup directories
RUN mkdir -p /app/code /app/data /tmp/nginx \
&& chown -R cloudron:cloudron /app/code /app/data
# Copy Keila from official image
COPY --from=pentacent/keila:0.14 /opt/app /app/pkg
# Copy configuration files
COPY start.sh /app/code/start.sh
COPY supervisor/ /etc/supervisor/conf.d/
COPY nginx.conf /etc/nginx/sites-available/default
COPY nginx_main.conf /etc/nginx/nginx.conf
# Set permissions
RUN chmod +x /app/code/start.sh
RUN chmod +x /app/code/start.sh && \
chown -R cloudron:cloudron /app/code /app/pkg
WORKDIR /app/code