forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (32 loc) · 1.12 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
35
36
37
# Copyright (c) 2019-2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
FROM debian:buster
# Install fuse-overlayfs and Tern dependencies
RUN apt-get update && \
apt-get -y install \
attr \
findutils \
git \
gnupg2 \
python3 \
python3-pip \
python3-setuptools \
tar \
util-linux \
wget && \
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && \
wget --no-verbose https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_10/Release.key -O - | apt-key add - && \
apt-get update && \
apt-get -y install \
buildah \
fuse-overlayfs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Adjust storage.conf to enable Fuse storage.
RUN sed -i -e 's|^#mount_program|mount_program|g' -e '/additionalimage.*/a "/var/lib/shared",' /etc/containers/storage.conf
# Install tern
RUN pip3 install --upgrade pip && \
pip3 install --no-cache-dir \
tern
ENTRYPOINT ["tern", "--driver", "fuse"]
CMD ["-h"]