-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 778 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (18 loc) · 778 Bytes
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
ARG debian_version='stretch-slim'
ARG ghc_version='8.2.2'
FROM haskell:"${ghc_version}" as build
ARG hindent_version='5.3.1'
ARG stack_resolver_version='lts-11.22'
RUN stack --resolver "${stack_resolver_version}" install \
--ghc-options='-fPIC -optl-static' "hindent-${hindent_version}"
FROM debian:"${debian_version}"
LABEL org.opencontainers.image.title='hindent'
LABEL org.opencontainers.image.url='https://github.com/mihaimaruseac/hindent'
ARG libgmp_dev_version='2:6.1.2+dfsg-1'
RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
"libgmp-dev=${libgmp_dev_version}" \
&& apt-get clean \
&& rm --force --recursive /var/lib/apt/lists/*
COPY --from=build /root/.local/bin/hindent /usr/local/bin/hindent
ENTRYPOINT ["hindent"]