-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (33 loc) · 974 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 nvidia/cuda:11.3.0-devel-ubuntu20.04
MAINTAINER Nico Bosshard
LABEL version="1.0"
LABEL description="Fast Privacy Amplification implementation using CUDA"
EXPOSE 22
WORKDIR /root
ENV TERM xterm-256color
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
rsyslog \
openssh-server \
iputils-ping \
iproute2 \
libzmq3-dev \
wget \
git \
tmux \
htop \
nano \
rhash \
gdb
RUN echo "alias tmux='tmux -u'" >> ~/.bashrc && \
echo 'set -g default-terminal "screen-256color"' >> ~/.tmux.conf
RUN mkdir .ssh && chmod 700 .ssh
COPY PrivacyAmplificationDocker.pub .ssh/authorized_keys
RUN chmod 755 .ssh/authorized_keys
RUN git clone --recursive https://oauth2:[email protected]/qkd/gpu/privacyamplification.git \
&& chmod +x privacyamplification/run.sh
WORKDIR /root/privacyamplification
RUN make -j 4
CMD /bin/bash --init-file ./run.sh