daisy-ycguo opened a new issue #93: An error in Dockerfile
URL: https://github.com/apache/incubator-openwhisk-package-alarms/issues/93
 
 
   The image built based on Dockerfile in the root folder is not runnable now 
because `/logs/alarmsTrigger_logs.log` is not exist.
   
   Below changes are an option to fix this issue.
   ```
   --- a/Dockerfile
   +++ b/Dockerfile
   @@ -16,10 +16,11 @@ RUN apt-get update --fix-missing && \
    # only package.json
    ADD package.json /alarmsTrigger/
    RUN cd /alarmsTrigger; npm install
   +RUN touch ~/alarmsTrigger_logs.log
   
    # App
    ADD provider/. /alarmsTrigger/
   
    EXPOSE 8080
   
   -CMD ["/bin/bash", "-c", "node /alarmsTrigger/app.js >> 
/logs/alarmsTrigger_logs.log 2>&1"]
   +CMD ["/bin/bash", "-c", "node /alarmsTrigger/app.js >> 
~/alarmsTrigger_logs.log 2>&1"]
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to