taowang1993 commited on
Commit
ee76237
·
verified ·
1 Parent(s): dbe48de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -11
Dockerfile CHANGED
@@ -1,6 +1,5 @@
1
-
2
- # Use official Nextcloud image as base
3
- FROM nextcloud:27-apache
4
 
5
  # Set working directory
6
  WORKDIR /var/www/html
@@ -12,16 +11,18 @@ EXPOSE 7860
12
  RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf && \
13
  sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf
14
 
15
- # Optional: Enable recommended Apache modules
16
  RUN a2enmod rewrite headers env dir mime
17
 
18
- # ✅ Environment variables for auto-install (SQLite + admin user)
 
 
19
  ENV SQLITE_DATABASE=nextcloud.db \
20
- NEXTCLOUD_TRUSTED_DOMAINS=https://taowang1993-nextcloud.hf.space \
21
- OVERWRITEHOST=https://taowang1993-nextcloud.hf.space \
22
- OVERWRITEPROTOCOL=https \
23
- OVERWRITECLIURL=https://taowang1993-nextcloud.hf.space \
24
  NEXTCLOUD_DATA_DIR=/var/www/html/data \
25
- TZ=Asia/Ho_Chi_Minh
 
 
 
 
26
 
27
- # CMD is already set in base image to start Apache
 
1
+ # Use official Nextcloud image (Recommend latest for research)
2
+ FROM nextcloud:30-apache
 
3
 
4
  # Set working directory
5
  WORKDIR /var/www/html
 
11
  RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf && \
12
  sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf
13
 
14
+ # Enable recommended Apache modules
15
  RUN a2enmod rewrite headers env dir mime
16
 
17
+ # ✅ Configuration Variables (Safe to be public)
18
+ # Note: Admin User/Pass are missing here intentionally.
19
+ # They will be injected via HF Space Settings.
20
  ENV SQLITE_DATABASE=nextcloud.db \
 
 
 
 
21
  NEXTCLOUD_DATA_DIR=/var/www/html/data \
22
+ TZ=Asia/Ho_Chi_Minh \
23
+ NEXTCLOUD_TRUSTED_DOMAINS=taowang1993-nextcloud.hf.space \
24
+ OVERWRITEHOST=taowang1993-nextcloud.hf.space \
25
+ OVERWRITEPROTOCOL=https \
26
+ OVERWRITECLIURL=https://taowang1993-nextcloud.hf.space
27
 
28
+ # CMD is already set in base image