CoolFace
Apppublic

enemy7/cloud

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile59 linesDownload Raw Back to root
1# # Use the official Nextcloud image as the base image2FROM ubuntu:latest3 4# # Install additional PHP modules if required (uncomment and add more if needed)5# RUN apt-get update && apt-get upgrade -y6# RUN apt-get install docker-compose -y7 8# EXPOSE 78609 10# COPY . /app11 12# RUN cd /app13 14 15# # RUN export PATH=$PATH:$HOME/.local/bin16 17 18# CMD ["docker-compose up"]19 20# Use a base image with an SSH server (you can choose a specific image based on your requirements)21# FROM ubuntu:latest22 23# # Update the package lists and install the SSH server24# RUN apt-get update && apt-get upgrade -y 25 26# Create an SSH user (replace "sshuser" with your desired username)27# RUN useradd -m -d /home/sshuser -s /bin/bash sshuser28 29# # Set a password for the SSH user (replace "sshpassword" with your desired password)30# RUN echo 'sshuser:sshpassword' | chpasswd31 32# # Generate SSH host keys33# RUN ssh-keygen -A34 35# RUN service ssh start36# FROM python:3.937 38# WORKDIR /app39 40# COPY requirements.txt /app/41# RUN pip3 install -r requirements.txt42# RUN chmod 777 /app 43# COPY . /app44 45# # Expose port 7768 for SSH46# # EXPOSE 786047 48 49RUN apt-get update && apt-get upgrade -y50 51# RUN apt-get install docker-compose -y52 53# RUN service docker start54COPY . . 55RUN chmod 777 nextcloud.sh56# Start the SSH server when the container runs57# CMD ["python3","app.py"]58CMD ["./nextcloud.sh"]59