Initial commit for Ente Cloudron package
This commit is contained in:
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
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"]
|
Reference in New Issue
Block a user