-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile to run the bot in a docker container
- Loading branch information
1 parent
14f3bf0
commit 5e6456f
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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"] |