32 lines
758 B
Docker
32 lines
758 B
Docker
FROM cloudron/base:4.2.0
|
|
|
|
# Use Keila's prebuilt image as base for the release
|
|
FROM pentacent/keila:0.14 as keila-build
|
|
|
|
FROM cloudron/base:4.2.0
|
|
|
|
# Install runtime dependencies
|
|
RUN apt-get update \
|
|
&& apt-get install -y postgresql-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create directories
|
|
RUN mkdir -p /app/code /app/data
|
|
|
|
# Copy Keila from build stage
|
|
COPY --from=keila-build /opt/app /tmp/keila-release
|
|
|
|
# Copy configuration files
|
|
COPY start.sh /app/code/start.sh
|
|
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 \
|
|
&& chown -R cloudron:cloudron /app/code /app/data /tmp/keila-release
|
|
|
|
WORKDIR /app/code
|
|
|
|
EXPOSE 4000
|
|
|
|
CMD ["/app/code/start.sh"] |