Skip to content

Instantly share code, notes, and snippets.

@phsantiago32
Created October 9, 2018 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phsantiago32/b8a5d55c7ffb58401705d4780837d066 to your computer and use it in GitHub Desktop.
Save phsantiago32/b8a5d55c7ffb58401705d4780837d066 to your computer and use it in GitHub Desktop.
Dockerfile for running an instance of hubot on Heroku
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"]
#!/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