Created
October 9, 2018 18:52
-
-
Save phsantiago32/b8a5d55c7ffb58401705d4780837d066 to your computer and use it in GitHub Desktop.
Dockerfile for running an instance of hubot on Heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
# Install dependencies | |
RUN apk update && apk upgrade \ | |
&& apk add --update nodejs nodejs-npm \ | |
&& npm install -g npm | |
# Create hubot user | |
RUN adduser -h /hubot -s /bin/bash -S hubot | |
USER hubot | |
WORKDIR /hubot | |
# Copy dependency files and install with npm | |
COPY package.json package.json | |
RUN npm install | |
# Copy bot scripts | |
COPY scripts /hubot/scripts | |
COPY external-scripts.json external-scripts.json | |
COPY run-hubot.sh run-hubot.sh | |
# Copy application file | |
ADD bin/hubot bin/ | |
RUN ls /hubot | |
# Let's get it started! | |
CMD ["/bin/sh", "-c", "./run-hubot.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./bin/hubot -a telegram --name "hubot" "$@"% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment