ci: enable yarn in test image

This commit is contained in:
Nicolas Giard 2022-04-26 11:34:16 -04:00
parent 003b6d62f5
commit 0dec52f129
No known key found for this signature in database
GPG key ID: 85061B8F9D55B7C8
2 changed files with 5 additions and 5 deletions

View file

@ -72,6 +72,9 @@ RUN sed -i 's/\r$//' /tmp/app-install-chromedriver.sh && \
chmod +x /tmp/app-install-chromedriver.sh
RUN /tmp/app-install-chromedriver.sh
# Activate Yarn
RUN corepack enable
# Get rid of installation files we don't need in the image, to reduce size
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
@ -114,8 +117,3 @@ RUN chmod +rx /usr/local/bin/wait-for
# Create workspace
RUN mkdir -p /workspace
WORKDIR /workspace
# Install NPM modules
COPY package.json package.json
RUN npm install --no-audit
RUN rm -f package.json package-lock.json

View file

@ -8,6 +8,8 @@ echo "Copying config files..."
cp ./docker/configs/settings_local.py ./ietf/settings_local.py
echo "Ensure all requirements.txt packages are installed..."
pip install -r requirements.txt
echo "Compiling native node packages..."
yarn rebuild
echo "Building static assets..."
yarn build
echo "Creating data directories..."