-
Notifications
You must be signed in to change notification settings - Fork 10
/
ls_base.dockerfile
50 lines (39 loc) · 1.08 KB
/
ls_base.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
41
42
43
44
45
46
47
48
49
50
ARG LLVM_VER="14"
ARG GNAT_VER="12"
#---
FROM python:3-slim-bookworm AS base
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
ca-certificates \
curl \
gcc \
make \
zlib1g-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install setuptools wheel
#---
FROM base AS build
ARG LLVM_VER
ARG GNAT_VER
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
clang-$LLVM_VER \
gnat-$GNAT_VER \
llvm-$LLVM_VER-dev \
npm \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g vsce@1.103.1
#---
FROM base AS run
ARG LLVM_VER
ARG GNAT_VER
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
libgnat-$GNAT_VER \
libllvm$LLVM_VER \
unzip \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*