Spaces:
Sleeping
Sleeping
File size: 900 Bytes
d6d88af df7bb5d ee76237 df7bb5d ee76237 df7bb5d 143f118 ee76237 df7bb5d ee76237 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# Use official Nextcloud image
FROM nextcloud:latest
# Set working directory
WORKDIR /var/www/html
# Expose Hugging Face Spaces default port
EXPOSE 7860
# Change Apache port to 7860
RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf && \
sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf
# Enable recommended Apache modules
RUN a2enmod rewrite headers env dir mime
# ✅ Configuration Variables (Safe to be public)
# Note: Admin User/Pass are missing here intentionally.
# They will be injected via HF Space Settings.
ENV SQLITE_DATABASE=nextcloud.db \
NEXTCLOUD_DATA_DIR=/var/www/html/data \
TZ=Asia/Ho_Chi_Minh \
NEXTCLOUD_TRUSTED_DOMAINS=taowang1993-nextcloud.hf.space \
OVERWRITEHOST=taowang1993-nextcloud.hf.space \
OVERWRITEPROTOCOL=https \
OVERWRITECLIURL=https://taowang1993-nextcloud.hf.space
# CMD is already set in base image |