fix entrypoint to accept node parameters
This commit is contained in:
parent
7acbc93ba9
commit
0f05305f8e
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ MAINTAINER Petr Sloup <petr.sloup@klokantech.com>
|
|||
ENV NODE_ENV="production"
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/bin/bash", "/usr/src/app/run.sh"]
|
||||
|
||||
RUN apt-get -qq update \
|
||||
|
|
|
|||
2
run.sh
2
run.sh
|
|
@ -17,7 +17,7 @@ sleep 3
|
|||
export DISPLAY=:99.0
|
||||
|
||||
cd /data
|
||||
node /usr/src/app/ -p 80 "$@" &
|
||||
node /usr/src/app/ "$@" &
|
||||
child=$!
|
||||
wait "$child"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue