Skip to content

Commit 95dfaf4

Browse files
author
Dmitry Berezovsky
committed
initial version
1 parent 2f33292 commit 95dfaf4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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"]

0 commit comments

Comments
 (0)