meteor - Trying to build a docker container, start.sh not found -


i'm trying build docker container, doesn't seem find start.sh. copies container, somehow doesnt work.

this dockerfile:

from ubuntu:16.04  # install meteor run apt-get update run apt-get install -y curl run curl https://install.meteor.com/ | sh run meteor npm install --save highcharts  # entypointscript copy start.sh / run chmod u+x /start.sh  # copy app copy /app /app  # ui expose expose 80  entrypoint /start.sh 

and start.sh:

#!/bin/bash  sleep 20 /app/meteor run   # don't exit  /usr/bin/tail -f /dev/null 

also i'm not sure meteor run command in start.sh. how tell meteor run executed in specific directory, without being able cd it?

i'm using windows 10. have meteor app in \app\ directory , dockerfile , start.sh in same directory app folder.

i build container using: docker build -t meteorapp .

the error when i'm trying run using:

docker run -p 80:80 --net docker-network --name meteorapp meteorapp

is:

/bin/sh: 1: /start.sh: not found

thank much!

try adding workdir location start.sh added.like :

workdir / entrypoint /start.sh 

since did not work , can try out following 2 things :

1.since working on windows ,make sure eol conversion start.sh of unix format.

2.secondly , update entry point following :

entrypoint ./start.sh 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -