-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestsite.Dockerfile
29 lines (24 loc) · 1 KB
/
testsite.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
FROM ubuntu:18.04
MAINTAINER Raj <[email protected]>
ENV VENV=/app
ENV PYTHONUNBUFFERED 1
RUN mkdir /app
COPY /volumes/testsite /app/testsite
COPY /services_config/pyramid_app_config/setup.py /app/setup.py
COPY /services_config/pyramid_app_config/development.ini /app/testsite_config/development.ini
COPY /services_config/pyramid_app_config/requirements.pip /app/testsite_config/requirements.pip
RUN apt-get -yqq update && apt-get install -yqq python python-dev python-pip python-virtualenv
RUN mkdir /app/venv
RUN virtualenv /app/venv
RUN ls /app/venv
#RUN source /app/venv/bin/activate
RUN /app/venv/bin/pip install -r /app/testsite_config/requirements.pip
# RUN /app/venv/bin/pip install -e /app/testsite_config
RUN /app/venv/bin/pip install -e "./app[testing]"
# RUN /app/venv/bin/pserve /app/testsite_config/development.ini --reload
WORKDIR /app
# RUN source /app/venv/bin/activate
RUN which python
RUN ls -a
#RUN /app/venv/bin/pserve /app/testsite_config/development.ini --reload
#CMD ["python", "app.py"]