Initial commit: Docmost Cloudron package with customizable configuration
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -14,19 +14,24 @@ WORKDIR /app/code
|
||||
RUN git clone https://github.com/docmost/docmost.git . && \
|
||||
rm -rf .git && \
|
||||
pnpm install && \
|
||||
pnpm build
|
||||
pnpm build && \
|
||||
mv apps/client/dist /app/client-dist-original && \
|
||||
ln -s /app/data/client-dist apps/client/dist
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p /tmp/data /app/data && \
|
||||
chown -R cloudron:cloudron /app/data /tmp/data
|
||||
|
||||
# Copy startup scripts
|
||||
# Copy startup scripts and configuration files
|
||||
COPY start.sh /app/code/
|
||||
COPY healthcheck.js /app/code/
|
||||
COPY nginx.conf /etc/nginx/sites-available/default
|
||||
COPY env.sample /app/code/env.sample
|
||||
COPY CONFIGURATION.md /app/code/CONFIGURATION.md
|
||||
|
||||
# Override nginx global error log to prevent read-only filesystem error
|
||||
RUN sed -i 's|error_log /var/log/nginx/error.log;|error_log /dev/stderr;|' /etc/nginx/nginx.conf
|
||||
# Override nginx global logs to prevent read-only filesystem errors
|
||||
RUN sed -i 's|error_log /var/log/nginx/error.log;|error_log /dev/stderr;|' /etc/nginx/nginx.conf && \
|
||||
sed -i 's|access_log /var/log/nginx/access.log;|access_log /dev/stdout;|' /etc/nginx/nginx.conf
|
||||
|
||||
# Make scripts executable
|
||||
RUN chmod +x /app/code/start.sh /app/code/healthcheck.js
|
||||
|
Reference in New Issue
Block a user