cloud / Dockerfile
enemy7's picture
Update Dockerfile
44a2d3c
# # 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"]