install yarn in dockerfile
This commit is contained in:
@@ -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" \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user