-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
41 lines (34 loc) · 1.01 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
38
39
40
41
FROM thevlang/vlang:buster-dev
# options
ARG DEV_IMG="false"
# disable tzdata questions
ENV DEBIAN_FRONTEND=noninteractive
# use bash
SHELL ["/bin/bash", "-c"]
# install apt-utils
RUN apt-get update -y \
&& apt-get install -y apt-utils 2> >( grep -v 'debconf: delaying package configuration, since apt-utils is not installed' >&2 ) \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# essential tools
RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
curl \
git \
make \
nodejs \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# install isolate deps
RUN apt-get update -y && apt-get install -y --no-install-recommends \
libcap-dev \
libseccomp-dev \
libseccomp2 \
libcap2-bin \
asciidoc \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# install isolate
RUN git clone https://github.com/ioi/isolate /tmp/isolate \
&& cd /tmp/isolate \
&& make isolate isolate-check-environment \
&& make install \
&& rm -rf /tmp/isolate