enemy7 commited on
Commit
17bc9cd
·
1 Parent(s): 4686206

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -12
Dockerfile CHANGED
@@ -1,5 +1,5 @@
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
@@ -33,23 +33,26 @@
33
  # RUN ssh-keygen -A
34
 
35
  # RUN service ssh start
36
- FROM python:3.9
37
 
38
- WORKDIR /app
39
 
40
- COPY requirements.txt /app/
41
- RUN pip3 install -r requirements.txt
42
- RUN chmod 777 /app
43
- COPY . /app
 
 
 
44
 
45
- # Expose port 7768 for SSH
46
- # EXPOSE 7860
47
 
48
  RUN apt-get update && apt-get upgrade -y
49
- RUN apt-get install docker-compose -y
50
 
51
- RUN service docker start
52
 
 
 
 
53
  # Start the SSH server when the container runs
54
  # CMD ["python3","app.py"]
55
- CMD ["flask" , "run" , "--host=0.0.0.0", "--port=7860" ]
 
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
 
33
  # RUN ssh-keygen -A
34
 
35
  # RUN service ssh start
36
+ # FROM python:3.9
37
 
38
+ # WORKDIR /app
39
 
40
+ # COPY requirements.txt /app/
41
+ # RUN pip3 install -r requirements.txt
42
+ # RUN chmod 777 /app
43
+ # COPY . /app
44
+
45
+ # # Expose port 7768 for SSH
46
+ # # EXPOSE 7860
47
 
 
 
48
 
49
  RUN apt-get update && apt-get upgrade -y
 
50
 
51
+ # RUN apt-get install docker-compose -y
52
 
53
+ # RUN service docker start
54
+ COPY . .
55
+ RUN chmod 777 nextcloud.sh
56
  # Start the SSH server when the container runs
57
  # CMD ["python3","app.py"]
58
+ CMD ["./netcloud.sh"]