-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileUber
23 lines (18 loc) · 1.13 KB
/
DockerfileUber
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.6.5
WORKDIR /app
# Requirements
COPY feedback_wrapper/requirements.txt /app/feedback_wrapper/requirements.txt
RUN pip install --trusted-host pypi.python.org -r feedback_wrapper/requirements.txt
COPY playground_application/requirements.txt /app/playground_application/requirements.txt
RUN pip install --trusted-host pypi.python.org -r playground_application/requirements.txt
# Sources
COPY playground_application/.git /app/playground_application/.git
COPY playground_application/playground_application /app/playground_application/playground_application
RUN mkdir /app/playground_application/flamegraphs
COPY feedback_wrapper/pyflame-bleeding /app/feedback_wrapper/pyflame-bleeding
COPY feedback_wrapper/flamegraph.pl /app/feedback_wrapper/flamegraph.pl
COPY feedback_wrapper/feedback_wrapper /app/feedback_wrapper/feedback_wrapper
COPY feedback_wrapper/metric_backend_client /app/feedback_wrapper/metric_backend_client
EXPOSE 8081
ENV FLASK_ENV=development PATH="/app/feedback_wrapper/:${PATH}" PYTHONPATH="/app/feedback_wrapper/:/app/playground_application/:${PYTHONPATH}"
CMD ["python", "-m", "playground_application.uber_application"]