File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM logicify/centos7
2+ MAINTAINER "Dmitry Berezovsky <dmitry.berezovsky@logicify.com>"
3+
4+ ENV APPLICATION_DIR="/srv/application"
5+
6+ # Install required packages
7+ RUN yum -y install python34 python-virtualenv postgresql-devel gcc python34-devel \
8+ libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
9+
10+ # Install pip3
11+ RUN curl https://bootstrap.pypa.io/get-pip.py | python3.4
12+ # install virtualenv
13+ RUN pip3 install virtualenv
14+
15+ # Create virtual environment
16+ RUN cd /srv \
17+ && virtualenv --python=python3 virtenv \
18+ && chown app:app -R /srv/virtenv
19+
20+ RUN mkdir $APPLICATION_DIR && chown app:app -R $APPLICATION_DIR && cd $APPLICATION_DIR
21+
22+ USER app
23+ WORKDIR $APPLICATION_DIR
24+
25+ RUN echo "source /srv/virtenv/bin/activate" >> "/home/app/.bashrc"
26+
27+ CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments