forked from no13bus/redispapa
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 790 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Dockerfile for redispapa
FROM ubuntu:latest
MAINTAINER sinchb128@gmail.com
# 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"]