Files
docmost-cloudron/Dockerfile
2025-07-14 21:02:34 -06:00

41 lines
1.0 KiB
Docker

FROM cloudron/base:5.0.0
MAINTAINER Cloudron Support <support@cloudron.io>
# Install Node.js 20 and pnpm
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
npm install -g pnpm@9.12.4
# Set up application directory
WORKDIR /app/code
# Clone and build Docmost
RUN git clone https://github.com/docmost/docmost.git . && \
rm -rf .git && \
corepack enable && \
corepack prepare pnpm@latest --activate && \
pnpm install --frozen-lockfile && \
pnpm build
# Create necessary directories
RUN mkdir -p /tmp/data /app/data && \
chown -R cloudron:cloudron /app/data /tmp/data
# Copy startup scripts
COPY start.sh /app/code/
COPY nginx.conf /etc/nginx/sites-available/default
# Make scripts executable
RUN chmod +x /app/code/start.sh
# Install supervisord for process management
RUN apt-get update && \
apt-get install -y supervisor && \
rm -rf /var/lib/apt/lists/*
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 3000
CMD [ "/app/code/start.sh" ]