-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (19 loc) · 637 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM arm64v8/debian:stable
ENV DEBIAN_FRONTEND noninteractive
MAINTAINER ba
RUN apt-get -y update && apt-get -y upgrade \
&& apt-get install -yqq openssh-server \
python3-twisted python3-distutils python3-pip
COPY bromine /bromine/
COPY setup.py tests.py server.py run.sh /
COPY config.ini /root/.config/bromine/config.ini
WORKDIR /
RUN mkdir -pv /run/sshd \
&& python3 -m unittest \
&& groupadd --gid 10000 smith \
&& mkdir -p /home/jerry \
&& useradd -d /home/jerry -M -N --gid 10000 --uid 10000 jerry \
&& chown -R jerry:smith /home/jerry \
&& echo 'jerry:password' | chpasswd \
&& python3 setup.py install
CMD /run.sh