diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..87c26de7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM node:12-bullseye +RUN apt update && \ + apt install sudo && \ + wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && \ + echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list && \ + sudo apt-get update; sudo apt-get install -y java-1.8.0-amazon-corretto-jdk diff --git a/package-lock.json b/package-lock.json index 4f43d1d9..8ce300f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1875,6 +1875,25 @@ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dev": true, + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + }, + "dependencies": { + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "optional": true + } + } + }, "bl": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", @@ -5525,6 +5544,7 @@ "dev": true, "optional": true, "requires": { + "bindings": "^1.5.0", "nan": "^2.12.1" } }, diff --git a/package.json b/package.json index a86241da..3bd2ec7b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "test": "npm run build && npm run generate-test-files && ./buildtools/run_tests.sh", "serve": "npm run build && npm run generate-test-files && gulp serve", "generate-test-files": "./buildtools/generate_test_files.sh", - "prepublish": "npm run test && cp -r dist demo/public" + "prepublish": "npm run test && cp -r dist demo/public", + "build-on-docker": "docker image build -t firebaseui-web . && docker run --rm -v $(pwd):/app -w /app firebaseui-web sh -c 'npm install && npm run build && npm run build build-npm-ja && npm run build build-esm-ja && npm run build build-js-ja'" }, "test": "npm run test", "author": "Google",