forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 818 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
# Copyright (c) 2019-2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
FROM python:3.9-slim-buster as base
FROM base as builder
RUN mkdir /install
WORKDIR /install
RUN pip install --no-warn-script-location --prefix=/install \
tern
FROM base
RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list \
&& echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
attr \
findutils \
fuse-overlayfs/bullseye \
fuse3/bullseye \
git \
jq \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /install /usr/local
ENTRYPOINT ["tern", "--driver", "fuse"]
CMD ["--help"]