enemy7 commited on
Commit
9f158e9
·
1 Parent(s): 065d45f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Nextcloud image as the base image
2
+ FROM nextcloud:latest
3
+
4
+ # Install additional PHP modules if required (uncomment and add more if needed)
5
+ # RUN apt-get update && apt-get install -y php7.4-gd php7.4-ldap php7.4-redis
6
+
7
+ # Environment variables for Nextcloud configuration (modify as needed)
8
+ ENV MYSQL_DATABASE=nextcloud \
9
+ MYSQL_USER=b \
10
+ MYSQL_PASSWORD=b \
11
+ MYSQL_HOST=mariadb \
12
+ NEXTCLOUD_PORT=7896
13
+
14
+ # Expose the port Nextcloud will run on (default is 80)
15
+ EXPOSE 7896
16
+
17
+ # NEXTCLOUD_PORT=7654
18
+
19
+
20
+ # Add a volume for storing Nextcloud data
21
+ VOLUME /var/www/html
22
+
23
+ # Start Nextcloud
24
+ CMD ["apache2-foreground"]