-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 1017 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:11
# Source
RUN apt update && \
apt install -y software-properties-common && \
apt-add-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing main contrib non-free' && \
apt-add-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-updates main contrib non-free' && \
apt-add-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-backports main contrib non-free' && \
apt-add-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/debian-security testing-security main contrib non-free'
# Updates
RUN apt update && \
apt upgrade -y
# SSH Initial
RUN apt install -y openssh-server && \
mkdir /run/sshd
# Dev Dependencies
RUN apt install -y gcc-11 automake autoconf libtool make gdb valgrind man-db python3 python gcc-11-multilib
# Files
COPY authorized_keys /root/.ssh/authorized_keys
COPY sshd_config /etc/ssh/sshd_config
WORKDIR /workspace
VOLUME /workspace
VOLUME /root/.vscode-server
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]