chore: remove CloudronPackages for streamlined repo
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
FROM cloudron/base:4.2.0
|
||||
|
||||
# Install necessary tools
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
unzip \
|
||||
python3 \
|
||||
--no-install-recommends && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set up directory structure following Cloudron conventions
|
||||
RUN mkdir -p /app/code /app/data
|
||||
|
||||
# Download and extract Rathole (using a more reliable approach)
|
||||
RUN cd /tmp && \
|
||||
curl -L -o rathole.zip https://github.com/rathole-org/rathole/releases/download/v0.5.0/rathole-x86_64-unknown-linux-gnu.zip && \
|
||||
unzip rathole.zip && \
|
||||
mv rathole /app/code/ && \
|
||||
chmod +x /app/code/rathole && \
|
||||
rm -f rathole.zip
|
||||
|
||||
# Copy start script
|
||||
COPY start.sh /app/code/start.sh
|
||||
RUN chmod +x /app/code/start.sh
|
||||
|
||||
# Set proper permissions
|
||||
RUN chown -R cloudron:cloudron /app/code /app/data
|
||||
|
||||
# Configure working directory and user
|
||||
WORKDIR /app/code
|
||||
USER cloudron
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 2333 8080
|
||||
|
||||
# Start the application
|
||||
CMD ["/app/code/start.sh"]
|
Reference in New Issue
Block a user