# syntax=docker/dockerfile:1 FROM {{BASE_IMAGE}} LABEL org.opencontainers.image.source="{{APP_REPO}}" LABEL org.opencontainers.image.description="Cloudron package for {{APP_TITLE}}" ARG APP_VERSION ENV APP_VERSION=${APP_VERSION:-latest} # Copy application source into image at build time # Replace this with a multi-stage build if upstream provides Docker images. COPY ./app /app/code # Copy start script and make it executable COPY ./start.sh /app/pkg/start.sh RUN chmod +x /app/pkg/start.sh # Cloudron expects all processes to run as cloudron user USER cloudron WORKDIR /app/code CMD ["/app/pkg/start.sh"]