generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.ubuntu18
39 lines (30 loc) · 995 Bytes
/
Dockerfile.ubuntu18
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
# syntax=docker/dockerfile:1.4
FROM ubuntu:bionic as base-image
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
# curl and nuget/donet system dependencies for jammy
RUN apt-get update \
&& apt-get install -y \
curl \
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu60 \
libssl1.1 \
libstdc++6 \
zlib1g
ENV NI_ROOT=/opt/nuget-inspector
ENV NI_HOME=$NI_ROOT/bin
ENV NI_DOTNET_HOME=$NI_ROOT/dotnet
ENV PATH=$PATH:$NI_DOTNET_HOME:$NI_DOTNET_HOME/tools:$NI_HOME
RUN mkdir -p $NI_DOTNET_HOME \
&& curl --location https://aka.ms/dotnet/6.0/dotnet-sdk-linux-x64.tar.gz \
| tar -C $NI_DOTNET_HOME -xz
# ARG NI_VERSION=0.9.12
# RUN mkdir -p $NI_HOME \
# && curl -L https://github.com/nexB/nuget-inspector/releases/download/v${NI_VERSION}/nuget-inspector-v${NI_VERSION}-linux-x64.tar.gz \
# | tar --strip-components=1 -C $NI_HOME -xz
RUN mkdir -p $NI_HOME
ADD ./build/ $NI_HOME
ENTRYPOINT ["/opt/nuget-inspector/bin/nuget-inspector"]