-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 801 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
34
35
36
37
38
39
40
FROM ubuntu:18.04
USER root
ARG COMMIT=278816251d3201d233d169fd4fbde821f13624db
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
libpcsclite-dev \
python3-pip \
pcsc-tools \
pcscd \
swig \
git \
vim && \
apt-get clean && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir \
pyscard \
serial \
pytlv \
cmd2 \
pyYAML \
ply \
decorator \
jsonpath-ng \
construct
WORKDIR /root
RUN git clone -b master git:https://git.osmocom.org/pysim && \
cd pysim && \
git reset --hard $COMMIT && \
ln -s /root/pysim/pySim-prog.py /bin/writesim
WORKDIR /root/pysim
ENTRYPOINT [ "pcscd", "-f"]