Skip to content

Commit

Permalink
Also install sshd
Browse files Browse the repository at this point in the history
  • Loading branch information
polyrabbit committed Jun 1, 2024
1 parent 3907a4f commit bce0169
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ HEALTHCHECK CMD curl --fail http://localhost:$VCAP_APP_PORT/?healthy || exit 1
RUN apt-get update
RUN apt-get install -y ffmpeg libavcodec-extra

# From https://fly.io/docs/blueprints/opensshd/
RUN apt-get update \
&& apt-get install -y openssh-server vim lsof \
&& cp /etc/ssh/sshd_config /etc/ssh/sshd_config-original \
&& sed -i 's/^#\s*Port.*/Port 2333/' /etc/ssh/sshd_config \
&& sed -i 's/^#\s*PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config \
&& mkdir -p /root/.ssh \
&& chmod 700 /root/.ssh \
&& mkdir /var/run/sshd \
&& chmod 755 /var/run/sshd \
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives

COPY requirements.txt $WORKDIR
RUN pip install --no-cache-dir -r requirements.txt

Expand Down

0 comments on commit bce0169

Please sign in to comment.