-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
1 deletion.
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,30 @@ | ||
# Dockerfile for redispapa | ||
FROM ubuntu:latest | ||
|
||
MAINTAINER [email protected] | ||
|
||
# Update apt | ||
RUN cp /etc/apt/sources.list /etc/apt/sources.list.backup | ||
COPY sources.list /etc/apt/sources.list | ||
RUN apt-get update | ||
|
||
# Install python lib | ||
RUN apt-get install -y --upgrade python-setuptools python-dev build-essential \ | ||
&& apt-get install -y --upgrade wget \ | ||
&& apt-get install -y unzip \ | ||
&& wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py \ | ||
&& python get-pip.py \ | ||
&& rm -rf get-pip.py | ||
|
||
# Download source file | ||
RUN mkdir /root/redispapa | ||
WORKDIR /root/redispapa | ||
|
||
COPY ./ /root/redispapa/ | ||
|
||
# Install requirements | ||
RUN pip install -r requirements.txt | ||
|
||
EXPOSE 5000 | ||
|
||
CMD ["python2.7", "/root/redispapa/run.py"] |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
redis>=2.10.3 | ||
Flask==0.10.1 | ||
Flask-SocketIO==0.3.8 | ||
gevent==1.0.1 | ||
gevent-socketio==0.3.6 | ||
gevent-websocket==0.9.3 | ||
gevent-websocket==0.9.3 |
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,25 @@ | ||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted | ||
|
||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted | ||
|
||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty universe | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty universe | ||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates universe | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates universe | ||
|
||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty multiverse | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty multiverse | ||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates multiverse | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates multiverse | ||
|
||
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse | ||
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse | ||
|
||
deb http://security.ubuntu.com/ubuntu trusty-security main restricted | ||
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted | ||
deb http://security.ubuntu.com/ubuntu trusty-security universe | ||
deb-src http://security.ubuntu.com/ubuntu trusty-security universe | ||
deb http://security.ubuntu.com/ubuntu trusty-security multiverse | ||
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse |