I know this is more a Docker than a meteor issue, but maybe there are more that want to try this
I want to run a very simple dev Docker on WSL, but it throws a
sh: 1: meteor: not found
error when run via
docker run -p 3000:3000 meteordev
BUT, when I run it with
docker run -it -p 3000:3000 meteordev bash and run npm start on the command line it runs perfectly.
I guess this has to do with how the env is configured for both, but I can’t get it to work, any ideas?
Here ist the full Docker image. If there is another short one, I am happy to drop mine:
# Mini-Docker FROM node:14 RUN adduser --disabled-password --shell /bin/bash newuser RUN chown -R newuser /usr/local/lib/node_modules RUN chown -R newuser /usr/local/bin USER newuser COPY --chown=newuser:newuser ./app /home/newuser/app RUN chmod -R 700 /home/newuser/app/.meteor/local WORKDIR /home/newuser/app RUN npm install -g meteor@latest EXPOSE 3000 CMD ["npm", "start"]