Update Dockerfile1
Browse files- Dockerfile1 +7 -15
Dockerfile1
CHANGED
@@ -1,24 +1,16 @@
|
|
1 |
# Use the official Nextcloud image as the base image
|
2 |
-
FROM
|
3 |
|
4 |
# Install additional PHP modules if required (uncomment and add more if needed)
|
5 |
-
RUN apt-get update && apt-get
|
|
|
|
|
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 |
-
|
18 |
|
|
|
19 |
|
20 |
-
# Add a volume for storing Nextcloud data
|
21 |
-
VOLUME /var/www/html
|
22 |
|
23 |
-
|
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 "]
|
|