Skip to content

Commit

Permalink
Add Dockerfile to run the bot in a docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
lepinkainen committed Mar 1, 2016
1 parent 14f3bf0 commit 5e6456f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM lepinkainen/ubuntu-python-base
MAINTAINER Riku Lindblad "riku.lindblad@gmail.com"

RUN apt-get install -y libffi-dev libssl-dev

RUN useradd -ms /bin/bash pyfibot
WORKDIR /home/pyfibot
USER pyfibot

RUN git clone https://github.com/lepinkainen/pyfibot.git
#USER root
WORKDIR pyfibot
RUN virtualenv .
RUN bin/pip install --upgrade -r requirements.txt

COPY config.yml /tmp/config.yml

ENTRYPOINT ["bin/python", "pyfibot/pyfibot.py", "/tmp/config.yml"]

0 comments on commit 5e6456f

Please sign in to comment.