Skip to content

Commit

Permalink
Also install sshd
Browse files Browse the repository at this point in the history
  • Loading branch information
polyrabbit committed Sep 6, 2024
1 parent 3907a4f commit 937072d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,23 @@ 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

COPY . $WORKDIR

#RUN make docs

CMD ["make", "run-in-prod"]
CMD service ssh start && make run-in-prod

0 comments on commit 937072d

Please sign in to comment.