tannercollin / Notica

Send browser notifications from your terminal. No installation. No registration.
https://notica.us
MIT License
344 stars 22 forks source link

Docker dependencies #35

Closed jakobfriis closed 2 years ago

jakobfriis commented 2 years ago

Running in Docker does not work. There are unmet dependencies, and errors when starting the container. Any bright minds, that can solve this ?

Sending build context to Docker daemon 392.7kB Step 1/8 : FROM node:13-alpine ---> 8216bf4583a5 Step 2/8 : COPY / /notica/ ---> baebb5bb2e6e Step 3/8 : WORKDIR /notica/ ---> Running in e0f866c0be84 Removing intermediate container e0f866c0be84 ---> 0d72515af127 Step 4/8 : RUN addgroup -S notica && adduser -S notica -G notica && apk add -U tzdata tini && yarn --ignore-platform install && chown -R notica:notica /notica/ && chmod +x /notica/entrypoint ---> Running in 176fb3968a70 fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz (1/2) Installing tini (0.18.0-r0) (2/2) Installing tzdata (2021e-r0) Executing busybox-1.31.1-r9.trigger OK: 11 MiB in 18 packages yarn install v1.22.4 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning " > react-router@2.8.1" has incorrect peer dependency "react@^0.14.0 || ^15.0.0". warning " > eslint-plugin-react@2.7.1" has unmet peer dependency "eslint@>=0.8.0 || ~1.0.0-rc-0". warning " > webpack-dev-server@3.7.2" has incorrect peer dependency "webpack@^4.0.0". warning "webpack-dev-server > webpack-dev-middleware@3.7.0" has incorrect peer dependency "webpack@^4.0.0". [4/4] Building fresh packages... Done in 20.42s. Removing intermediate container 176fb3968a70 ---> 9101c9dd0c73 Step 5/8 : USER notica ---> Running in 791bd45abd86 Removing intermediate container 791bd45abd86 ---> 735e01afd0df Step 6/8 : EXPOSE 3000 ---> Running in 14f3ec20215b Removing intermediate container 14f3ec20215b ---> eadfd0613cfc Step 7/8 : ENTRYPOINT ["tini", "--", "/notica/entrypoint"] ---> Running in 2ad260125b63 Removing intermediate container 2ad260125b63 ---> e4e89c5ac7a9 Step 8/8 : CMD ["yarn","start","--host","0.0.0.0","--port","3000"] ---> Running in ea117e5f8138 Removing intermediate container ea117e5f8138 ---> 7c3b6b25767f Successfully built 7c3b6b25767f Successfully tagged notica:latest

When starting the container:

docker run --rm -it -p 3000:3000 notica

yarn run v1.22.4 $ yarn run build && node server.js --host 0.0.0.0 --port 3000 $ webpack --config ./webpack.production.config.js --profile --display-error-details --no-color Hash: 0c34ed32dc97cdb5d755 Version: webpack 1.15.0 Time: 620ms [0] multi main 28 bytes {0} [built] [1 error] factory:0ms building:1ms = 1ms

ERROR in ./src/index.js Module build failed: SyntaxError: Unexpected token (6:1)

4 | 5 | React.render((

6 | | ^ 7 | 8 | 9 | ), document.getElementById('root'));

BabelLoaderError: SyntaxError: Unexpected token (6:1)

4 | 5 | React.render((

6 | | ^ 7 | 8 | 9 | ), document.getElementById('root'));

at transpile (/notica/node_modules/babel-loader/lib/index.js:61:13)
at Object.module.exports (/notica/node_modules/babel-loader/lib/index.js:163:20)

@ multi main ==> Listening on port 3000. Open up http://0.0.0.0:3000/ in your browser.

tannercollin commented 2 years ago

Hi jakobfriis, unfortunately I didn't write the Dockerfile and have no idea how to maintain it.

I believe the author was @lukasmrtvy or @jkaberg.