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/config WORKDIR /app/code # Clone the ente repository during build (not from local source) RUN git clone --depth=1 https://github.com/ente-io/ente.git . # 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"]