Scaffold Cloudron packaging workspace and automation
This commit is contained in:
22
apps/midday/Dockerfile
Normal file
22
apps/midday/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM cloudron/base:5.0.0
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/midday-ai/midday.git"
|
||||
LABEL org.opencontainers.image.description="Cloudron package for Midday"
|
||||
|
||||
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"]
|
Reference in New Issue
Block a user