daml-sdk container improvements (#3902)

* re-add cleanup for /tmp to remove 700ish mb of unneeded temp files made by the sdk installer

* Set WORKDIR to daml user home dir so that sdk tools can create files

* add daml sdk config defaults for auto-install and update-check sdk install RUN command

* add --no-cache to apk add to reduce size a little

* add line return to end of daml-config.yaml
This commit is contained in:
Peter Garmaz 2019-12-19 18:31:15 +11:00 committed by Moritz Kiefer
parent 256a8f09f6
commit 03d55fa86a

View File

@ -1,7 +1,10 @@
FROM openjdk:8u212-alpine
RUN apk add curl bash
RUN apk add --no-cache curl bash
ARG VERSION
RUN addgroup -S daml && adduser -S daml -G daml
USER daml
RUN curl https://get.daml.com | sh -s $VERSION
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