enemy7 commited on
Commit
c5993b1
·
1 Parent(s): 4437e24

Update Dockerfile1

Browse files
Files changed (1) hide show
  1. Dockerfile1 +7 -15
Dockerfile1 CHANGED
@@ -1,24 +1,16 @@
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=7860
13
-
14
- # Expose the port Nextcloud will run on (default is 80)
15
  EXPOSE 7860
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"]
 
1
  # Use the official Nextcloud image as the base image
2
+ FROM ubuntu:latest
3
 
4
  # Install additional PHP modules if required (uncomment and add more if needed)
5
+ RUN apt-get update && apt-get upgrade -y
6
+
7
+ RUN apt-get install docker -y
8
 
 
 
 
 
 
 
 
 
9
  EXPOSE 7860
10
 
11
+ COPY . /app
12
 
13
+ RUN cd /app
14
 
 
 
15
 
16
+ CMD ["docker-compose up "]