Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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