0

我试图让赛普拉斯在我的构建过程中运行,但我收到了这些错误:

2021-03-06 00:25:45 HAST    Opening Cypress...
2021-03-06 00:25:45 HAST    Folder /code is not writable.
2021-03-06 00:25:48 HAST    
2021-03-06 00:25:48 HAST    Writing to this directory is required by Cypress in order to store screenshots and videos.
2021-03-06 00:25:48 HAST    
2021-03-06 00:25:48 HAST    Enable write permissions to this directory to ensure screenshots and videos are stored.
2021-03-06 00:25:48 HAST    
2021-03-06 00:25:48 HAST    If you don't require screenshots or videos to be stored you can safely ignore this warning.
2021-03-06 00:25:48 HAST    

我的 Dockerfile

FROM node12-ubuntu18.04

RUN apt-get update
RUN apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb

RUN mkdir -p /code
WORKDIR /code

ADD ./client/package.json /code/package.json
ADD ./client/yarn.lock /code/yarn.lock


RUN chown -R $USER:$USER /code
RUN chmod 755 /code

# install packages
RUN yarn install --pure-lockfile

# copy the source code
# `node_modules` and `coverage` will be excluded by .dockerignore
ADD ./client /code

RUN node_modules/.bin/cypress install

在此处输入图像描述

4

0 回答 0