-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (32 loc) · 1.26 KB
/
Dockerfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:16.04
EXPOSE 8000/tcp
EXPOSE 8080/tcp
EXPOSE 5000/tcp
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qqy update && \
apt-get -y -o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" upgrade && \
apt-get -qqy install make zip unzip postgresql wget sudo && \
apt-get -qqy install python3 python3-pip && \
apt-get -qqy install python python-pip && \
apt-get -qqy install vim nano
RUN pip3 install flask packaging oauth2client redis passlib && \
pip3 install flask-httpauth sqlalchemy flask-sqlalchemy && \
pip3 install psycopg2-binary bleach requests pycodestyle
RUN pip2 install flask packaging oauth2client redis passlib && \
pip2 install flask-httpauth sqlalchemy flask-sqlalchemy && \
pip2 install psycopg2-binary bleach requests pycodestyle
RUN wget http://download.redis.io/redis-stable.tar.gz && \
tar xvzf redis-stable.tar.gz && \
cd redis-stable && \
make && \
make install
VOLUME /vagrant
RUN useradd -s /bin/bash -b / -G sudo vagrant && \
echo "vagrant:vagrant" | chpasswd && \
service postgresql start && \
su postgres -c 'createuser -dRS vagrant' && \
su vagrant -c 'createdb && createdb news && createdb forum'
USER vagrant
WORKDIR /vagrant
CMD /bin/bash