File size: 1,343 Bytes
e0b6c67
17bc9cd
e0b6c67
 
 
 
 
 
 
 
 
 
9f158e9
 
e0b6c67
 
 
 
 
2f69fcd
aeb2a73
9f158e9
aeb2a73
 
76659aa
2f69fcd
efff598
ecc023c
efff598
 
ecc023c
efff598
 
ab12e30
efff598
17bc9cd
aeb2a73
17bc9cd
304f8c1
17bc9cd
 
 
 
 
 
 
bfbfc99
ecaf62d
a05a860
 
17bc9cd
4686206
17bc9cd
 
 
2f69fcd
b1017c0
44a2d3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# # Use the official Nextcloud image as the base image
FROM ubuntu:latest

# # Install additional PHP modules if required (uncomment and add more if needed)
# RUN apt-get update && apt-get upgrade -y
# RUN apt-get install docker-compose -y

# EXPOSE 7860

# COPY . /app

# RUN cd /app


# # RUN export PATH=$PATH:$HOME/.local/bin


# CMD ["docker-compose up"]

# Use a base image with an SSH server (you can choose a specific image based on your requirements)
# FROM ubuntu:latest

# # Update the package lists and install the SSH server
# RUN apt-get update && apt-get upgrade -y 

# Create an SSH user (replace "sshuser" with your desired username)
# RUN useradd -m -d /home/sshuser -s /bin/bash sshuser

# # Set a password for the SSH user (replace "sshpassword" with your desired password)
# RUN echo 'sshuser:sshpassword' | chpasswd

# # Generate SSH host keys
# RUN ssh-keygen -A

# RUN service ssh start
# FROM python:3.9

# WORKDIR /app

# COPY requirements.txt /app/
# RUN pip3 install -r requirements.txt
# RUN chmod 777 /app 
# COPY . /app

# # Expose port 7768 for SSH
# # EXPOSE 7860


RUN apt-get update && apt-get upgrade -y

# RUN apt-get install docker-compose -y

# RUN service docker start
COPY . . 
RUN chmod 777 nextcloud.sh
# Start the SSH server when the container runs
# CMD ["python3","app.py"]
CMD ["./nextcloud.sh"]