ente-cloudron/Dockerfile
2025-03-14 21:01:18 +01:00

31 lines
778 B
Docker

FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
# Install necessary packages
RUN apt-get update && \
apt-get install -y curl git nodejs npm && \
npm install -g yarn && \
apt-get clean && apt-get autoremove && \
rm -rf /var/cache/apt /var/lib/apt/lists
# Set up directory structure
RUN mkdir -p /app/code /app/data
WORKDIR /app/code
# Clone the ente repository
RUN git clone https://github.com/ente-io/ente.git . && \
cd server && \
mkdir -p /app/data/config
# Copy configuration and startup scripts
ADD start.sh /app/pkg/
ADD config.template.yaml /app/pkg/
# Set proper permissions
RUN chmod +x /app/pkg/start.sh
# Expose the web port
EXPOSE 8080
# Start the application
CMD ["/app/pkg/start.sh"]