mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-19 08:48:21 +03:00
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:
parent
256a8f09f6
commit
03d55fa86a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user