-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 804 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (19 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:focal
ENV TERM xterm-color
# Configure a user.
ARG USER=develop
RUN useradd -ms /bin/bash -G conda,sudo -k /etc/skel ${USER}
RUN echo "${USER}:${USER}" | chpasswd
RUN apt-get install -y python
USER ${USER}
COPY scripts /tmp/scripts
RUN cd /tmp/scripts && python setup/run.py --resources all
# This image exposes a port that hosts an ssh server for users to connect to.
# The container port will be 22, but it must be mapped to host port when running
# the container. If you are using the command line interface, this can be
# accomplished by running the image with the command `docker run -p 8022:22 <image_name>`.
# Then, ssh-ing into the container using `ssh -p 8022 bundledrefs@localhost` and the
# password `bundledrefs`.
EXPOSE 22
RUN service ssh start
CMD ["/usr/sbin/sshd", "-D"]