1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-09 21:41:31 +01:00
dotfiles/dev/Dockerfile.debian
2024-07-04 18:55:52 +02:00

21 lines
510 B
Docker

FROM debian:unstable
ENV TERM=xterm-256color
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_*
# 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
WORKDIR /root/.dotfiles
COPY . .
RUN cat dev/id_ed25519.pub >> /root/.ssh/authorized_keys
CMD ["bash", "dev/entrypoint.sh"]