install yarn in dockerfile

This commit is contained in:
jkoberg
2021-10-19 10:11:19 +02:00
parent de37b0b631
commit d3b1d7efdb
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -3,6 +3,8 @@ FROM owncloudci/golang:1.17 as build
RUN apk update && \
apk add --update npm
RUN npm install --global yarn
COPY ./ /ocis/
WORKDIR /ocis/ocis
@@ -14,9 +16,12 @@ FROM alpine:3.13
RUN apk update && \
apk upgrade && \
apk add ca-certificates mailcap && \
apk add --update npm && \
rm -rf /var/cache/apk/* && \
echo 'hosts: files dns' >| /etc/nsswitch.conf
RUN npm install --global yarn
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
org.label-schema.name="ownCloud Infinite Scale" \
org.label-schema.vendor="ownCloud GmbH" \
-1
View File
@@ -32,7 +32,6 @@ ci-go-generate: # CI runs ci-node-generate automatically before this target
.PHONY: ci-node-generate
ci-node-generate:
@npm install --global yarn
@make -C ../accounts ci-node-generate
@make -C ../graph-explorer ci-node-generate
@make -C ../settings ci-node-generate