cloud / Dockerfile
enemy7's picture
Update Dockerfile
2f69fcd
raw
history blame
959 Bytes
# # 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 install -y openssh-server
# 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
# Expose port 7768 for SSH
EXPOSE 7768
# Start the SSH server when the container runs
CMD ["/usr/sbin/sshd", "-D"]