Open Godbot opened 2 years ago
I managed to run the Dockerfile successfully. Here is how my Dockerfile looks.
FROM node:lts-bullseye-slim
WORKDIR /usr/src/app
RUN apt-get update && apt-get -y install \
git-core \
autotools-dev \
automake \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN git clone --single-branch --depth 1 https://github.com/flxn/qrcode2stl.git .
RUN npm install --location=global http-server
RUN yarn
RUN yarn run build; exit 0
RUN yarn run build
RUN mkdir www && mv dist/ www/qrcode2stl/
EXPOSE 8080
CMD [ "http-server", "www" ]
Hey mate, I'm no pro with Docker but I can generally stumble my way around.
When I attempt to build the Dockerfile I get:
I attempted to add:
above the npm install line but that didn't change anything. I also tried:
That gets me a bit further, it ends with:
So I edited the npm line to:
That got me way further... but now I'm just stuck coz it tells me: