Commit e6f0d2f3 authored by Matthias Stegmann's avatar Matthias Stegmann
Browse files

[TASK] Use fixed node version, include in web docker image

#21
parent 9ea7a15d
Pipeline #10547 passed with stages
in 6 minutes and 40 seconds
ARG BASE_IMAGE
FROM $BASE_IMAGE
ENV NODE_VERSION=14
RUN sudo apt-get remove -y nodejs
RUN curl -sSL --fail https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests nodejs
......@@ -53,7 +53,7 @@ build:php:
# compile and build JS / CSS
# should be used in conjunction with an artifact
.frontend_bootstrap: &frontend-bootstrap
image: node:12.19-buster
image: node:14.16-buster
variables:
node_path: src/webpack
script:
......
......@@ -73,7 +73,8 @@
"@php bin/typo3cms install:generatepackagestates"
],
"frontend-builds": [
"cd src/webpack; nvm use; yarn install; yarn build-prod"
"if [ \"$IS_DDEV_PROJECT\" != \"1\" ]; then export PATH=$HOME/.nvm/versions/node/v14.16.1/bin:$PATH; fi",
"cd src/webpack; yarn install; yarn build-prod"
],
"post-update-cmd": [
"@typo3-setup"
......
......@@ -4,8 +4,8 @@
"private": true,
"version": "1.0.0",
"engines": {
"node": "^12.19",
"yarn": "^1.13.0"
"node": "^14.16.0",
"yarn": "^1.22.0"
},
"author": {
"name": "b13 GmbH",
......@@ -51,8 +51,6 @@
"webpack-merge": "^4.2.2"
},
"devDependencies": {
"sass-lint": "^1.13.1",
"sass-lint-config": "https://code.b13.com/public-projects/sass-lint-config.git",
"webpack-dev-server": "^3.1.4"
}
}
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment