Implement proper Cloudron structure with supervisor
This commit is contained in:
21
Dockerfile
21
Dockerfile
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user