-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 1.03 KB
/
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
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg \
iproute2 \
iputils-ping \
systemd && \
rm -rf /var/lib/apt/lists/*
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list > ./microsoft-prod.list && \
cp ./microsoft-prod.list /etc/apt/sources.list.d/ && \
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && \
cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
RUN echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | tee -a /etc/apt/sources.list.d/bionic.list
RUN apt-get update && apt-get install -y --no-install-recommends \
libssl1.0.0 \
moby-cli \
moby-engine && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
iotedge && \
rm -rf /var/lib/apt/lists/*
COPY ./lib/rund.sh rund.sh
RUN sed -i 's/\r//' ./rund.sh && \
chmod u+x rund.sh
ENTRYPOINT [ "./rund.sh" ]