This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docker containers that need pip inherit from a common base image to reuse caches * Default to Python 3.6 and install make * Bump psycopg2 to fix Travis error
- Loading branch information
Showing
6 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ubuntu:rolling | ||
ENV PYTHONUNBUFFERED 1 | ||
RUN apt-get update && apt-get install -y tcl tk python3.6 python3.6-tk wget python-opencv | ||
RUN wget https://bootstrap.pypa.io/get-pip.py | ||
RUN python3.6 get-pip.py | ||
|
||
# Default to Python 3.6 | ||
RUN rm /usr/bin/python | ||
RUN ln -s /usr/bin/python3.6 /usr/bin/python | ||
|
||
# Interface | ||
COPY ./interface/requirements /requirements/interface | ||
RUN pip install -U pip | ||
RUN pip install -r /requirements/interface/local.txt | ||
|
||
# Prediction | ||
COPY ./prediction/.pylidcrc /root/.pylidcrc | ||
COPY ./prediction/requirements/torch.txt /requirements/prediction/torch.txt | ||
RUN pip install -r /requirements/prediction/torch.txt | ||
COPY ./prediction/requirements/local.txt /requirements/prediction/local.txt | ||
RUN pip install -r /requirements/prediction/local.txt | ||
COPY ./prediction/requirements/base.txt /requirements/prediction/base.txt | ||
RUN pip install -r /requirements/prediction/base.txt | ||
|
||
# Documentation | ||
COPY ./docs/requirements.txt /requirements/requirements.txt | ||
RUN pip install -r /requirements/requirements.txt | ||
|
||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
FROM python:3.6 | ||
ENV PYTHONUNBUFFERED 1 | ||
FROM concepttoclinic_base | ||
|
||
# Requirements have to be pulled and installed here, otherwise caching won't work | ||
COPY ./prediction/requirements/torch.txt /requirements/prediction/torch.txt | ||
RUN pip install -r /requirements/prediction/torch.txt | ||
COPY ./prediction/requirements/local.txt /requirements/prediction/local.txt | ||
RUN pip install -r /requirements/prediction/local.txt | ||
COPY ./prediction/requirements/base.txt /requirements/prediction/base.txt | ||
RUN pip install -r /requirements/prediction/base.txt | ||
|
||
COPY ./interface/requirements /requirements/interface | ||
RUN pip install -r /requirements/interface/local.txt | ||
|
||
# Documentation | ||
COPY ./docs/requirements.txt /requirements/requirements.txt | ||
RUN pip install -r /requirements/requirements.txt | ||
RUN apt-get install make | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
FROM ubuntu:rolling | ||
ENV PYTHONUNBUFFERED 1 | ||
RUN apt-get update && apt-get install -y tcl tk python3.6 python3.6-tk wget python-opencv | ||
RUN wget https://bootstrap.pypa.io/get-pip.py | ||
RUN python3.6 get-pip.py | ||
|
||
# Requirements have to be pulled and installed here, otherwise caching won't work | ||
COPY ./prediction/.pylidcrc /root/.pylidcrc | ||
COPY ./prediction/requirements/torch.txt /requirements/prediction/torch.txt | ||
RUN pip install -r /requirements/prediction/torch.txt | ||
COPY ./prediction/requirements/local.txt /requirements/prediction/local.txt | ||
RUN pip install -r /requirements/prediction/local.txt | ||
COPY ./prediction/requirements/base.txt /requirements/prediction/base.txt | ||
RUN pip install -r /requirements/prediction/base.txt | ||
FROM concepttoclinic_base | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters