2019-06-24 19:37:57 +03:00
|
|
|
FROM openjdk:8u212-alpine
|
2019-12-19 10:31:15 +03:00
|
|
|
RUN apk add --no-cache curl bash
|
2019-06-24 19:37:57 +03:00
|
|
|
ARG VERSION
|
2020-05-07 10:44:44 +03:00
|
|
|
# This is needed to get the DNS requests
|
|
|
|
# from Haskell binaries to succeed.
|
|
|
|
# Otherwise they fail to even resolve localhost.
|
|
|
|
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
|
2019-10-11 14:03:26 +03:00
|
|
|
RUN addgroup -S daml && adduser -S daml -G daml
|
|
|
|
USER daml
|
2019-12-19 10:31:15 +03:00
|
|
|
RUN curl https://get.daml.com | sh -s $VERSION \
|
|
|
|
&& printf "auto-install: false\nupdate-check: never\n" >> /home/daml/.daml/daml-config.yaml
|
|
|
|
|
2019-10-11 14:03:26 +03:00
|
|
|
ENV PATH="/home/daml/.daml/bin:${PATH}"
|
2019-12-19 10:31:15 +03:00
|
|
|
WORKDIR /home/daml
|