2020-12-07 19:45:06 +01:00
|
|
|
FROM debian:unstable
|
|
|
|
ENV TERM=xterm-256color
|
|
|
|
|
2024-07-04 12:21:21 +02:00
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/var/cache/apt \
|
|
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
openssh-server \
|
|
|
|
python python3 \
|
|
|
|
&& rm -rf /etc/ssh/ssh_host_*
|
2020-12-07 19:45:06 +01:00
|
|
|
# ssh host keys are generated by entrypoint, remove rm /etc/ssh/ssh_host*
|
|
|
|
# to hardcode ssh host keys into the image
|
|
|
|
|
|
|
|
RUN mkdir /run/sshd
|
|
|
|
|
2024-07-04 12:21:21 +02:00
|
|
|
WORKDIR /root/.dotfiles
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
RUN cat dev/id_ed25519.pub >> /root/.ssh/authorized_keys
|
|
|
|
|
|
|
|
CMD ["bash", "dev/entrypoint.sh"]
|