Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs updating #4

Open
liamh opened this issue Dec 31, 2022 · 0 comments
Open

Needs updating #4

liamh opened this issue Dec 31, 2022 · 0 comments

Comments

@liamh
Copy link

liamh commented Dec 31, 2022

I get numerous warnings/errors due to what appears to be obsolete packages/definitions/usages. While knowing almost nothing about js and how to load it, I have modified the Dockerfile as follows

FROM nginx:stable
RUN  apt update && apt install -y curl gnupg wget
RUN  curl -sL https://deb.nodesource.com/setup_19.x | bash -
RUN  apt install -y nodejs
RUN  mkdir /frontend && mkdir /frontend/src && mkdir /frontend/dist
ADD  src /frontend/src/
COPY package.json /frontend
COPY webpack.config.js /frontend
RUN  cd /frontend && npm install --legacy-peer-deps file-loader && npm run build
RUN  cp -r /frontend/dist/* /usr/share/nginx/html
ENTRYPOINT \
     wget -P /usr/share/nginx/html http://celestrak.com/NORAD/elements/stations.txt \
     && nginx -g "daemon off;"

This gets perhaps a hundred or more warnings and at least two errors. With a very wild guess I'd say that the webpack.node.js needs to be overhauled, but I haven't the slightest idea how to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant