-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile
41 lines (26 loc) · 906 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
32
33
34
35
36
37
38
39
40
41
#checkov:skip=CKV_DOCKER_3: we intend to use `root` user
ARG ubuntu_release
FROM ubuntu:$ubuntu_release AS build
SHELL ["/bin/bash", "-c"]
ENV PATH "/root/.pack/bin:/root/.idris2/bin:$PATH"
# hadolint ignore=DL3008,DL3015
RUN apt-get update && apt-get install --yes gcc make chezscheme libgmp3-dev git gnupg && rm -rf /var/lib/apt/lists/*
WORKDIR /opt/idris2-pack
COPY Makefile .
COPY src src
COPY micropack micropack
COPY micropack.bash .
COPY pack.ipkg .
COPY pack-admin.ipkg .
RUN true
ENV SCHEME=chezscheme
RUN make micropack SCHEME=$SCHEME
FROM ubuntu:$ubuntu_release
# hadolint ignore=DL3008,DL3015
RUN apt-get update && apt-get install --yes gcc make chezscheme libgmp3-dev git && rm -rf /var/lib/apt/lists/*
SHELL ["/bin/bash", "-c"]
ENV HOME="/root"
ENV PACK_DIR="$HOME/.pack"
ENV PATH "$PACK_DIR/bin:$PATH"
COPY --from=build $PACK_DIR $PACK_DIR
HEALTHCHECK CMD pack help || exit 1