You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Installing/Compiling without internet does not work as I suppose it is intended.
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
Clone repo to an Air gapped environment
run npm install --production
run npx grunt prod
Expected behaviour
A successful build resulting in files under build/prod/
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (if relevant, please complete the following information):
OS: Linux/docker
Browser: N/A
CyberChef version: 10.4.0
Additional context
What happens is that chromedriver is beeing pulled from the internet, even tho this is only needed for testing i assume. npm install --production does not work because grunt is located in the dev-environment, but still needed to build the files.
I'm guessing that moving grunt to the regular dependencies would fix this.
Dockerfile that works, here we remove chromedriver while we build, this feels wrong.
## Set baseimageFROM artifactory.example.org:8443/docker/node:18-alpine3.17 AS build
# Copy certificateCOPY ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# Copy source-codeCOPY src/. /src
# Set working-directoryWORKDIR /src
# Set environmentENV NODE_OPTIONS="--max-old-space-size=2048"# Run commandsRUN npm config set cafile /etc/ssl/certs/ca-certificates.crt && \
npm config set registry https://artifactory.example.org:8443/artifactory/api/npm/npm/ && \
npm uninstall -save-dev chromedriver && \
npm install && \
npx grunt prod
## Set image for webserverFROM artifactory.example.org:8443/docker/nginxinc/nginx-unprivileged:1.23-alpine3.17 as web
COPY --from=build /src/build/prod /usr/share/nginx/html
The text was updated successfully, but these errors were encountered:
Describe the bug
Installing/Compiling without internet does not work as I suppose it is intended.
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
npm install --production
npx grunt prod
Expected behaviour
A successful build resulting in files under build/prod/
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (if relevant, please complete the following information):
Additional context
What happens is that chromedriver is beeing pulled from the internet, even tho this is only needed for testing i assume.
npm install --production
does not work because grunt is located in the dev-environment, but still needed to build the files.I'm guessing that moving grunt to the regular dependencies would fix this.
Dockerfile that works, here we remove chromedriver while we build, this feels wrong.
The text was updated successfully, but these errors were encountered: