mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
614b4298a1
The openjdk-alpine images we were relying on so far do not have security updates anymore. CHANGELOG_BEGIN CHANGELOG_END
14 lines
501 B
Docker
14 lines
501 B
Docker
FROM adoptopenjdk:8-jdk-hotspot
|
|
ARG VERSION
|
|
# 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
|
|
RUN addgroup --system daml && adduser --system --ingroup daml daml
|
|
USER daml
|
|
RUN curl https://get.daml.com | sh -s $VERSION \
|
|
&& printf "auto-install: false\nupdate-check: never\n" >> /home/daml/.daml/daml-config.yaml
|
|
|
|
ENV PATH="/home/daml/.daml/bin:${PATH}"
|
|
WORKDIR /home/daml
|