-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
53 additions
and
57 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
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,51 +1,14 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update; DEBIAN_FRONTEND="noninteractive" apt-get install -y redis-server git python3-pip libgl1-mesa-glx libsm6 libxext6 libxrender-dev libglib2.0-0 pandoc | ||
RUN apt-get update; DEBIAN_FRONTEND="noninteractive" apt-get install -y redis-server git python3-pip libgl1-mesa-glx libsm6 libxext6 libxrender-dev libglib2.0-0 pandoc curl | ||
|
||
RUN ln -s /usr/bin/python3 /usr/bin/python | ||
RUN pip install --upgrade pip | ||
|
||
WORKDIR /home/service | ||
COPY poetry.lock /platipy/poetry.lock | ||
COPY pyproject.toml /platipy/pyproject.toml | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
COPY requirements-dev.txt requirements-dev.txt | ||
RUN pip install -r requirements-dev.txt | ||
|
||
COPY requirements-backend.txt requirements-backend.txt | ||
RUN pip install -r requirements-backend.txt | ||
|
||
# COPY ./platipy platipy | ||
# RUN pip install platipy | ||
|
||
# TODO Revert to pypi version | ||
RUN pip install git+https://github.com/pyplati/platipy.git | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
ENV PYTHONPATH "/home/service" | ||
|
||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
ENV WORK C.UTF-8 | ||
|
||
ARG dicom_listen_port=7777 | ||
|
||
ENV DICOM_LISTEN_PORT ${dicom_listen_port} | ||
ENV DICOM_LISTEN_AET PLATIPY_SERVICE | ||
|
||
RUN printf '#!/bin/bash\npython3 -m platipy.backend.manage $@\n' > /usr/bin/manage && chmod +x /usr/bin/manage | ||
|
||
EXPOSE 8000 | ||
EXPOSE ${dicom_listen_port} | ||
|
||
ENV WORK /data | ||
RUN mkdir /logs /data && chmod 0777 /logs /data | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD [ "manage" ] | ||
RUN curl -sSL https://install.python-poetry.org | python - --version 1.2.0rc1 | ||
RUN echo 'export PATH="/root/.local/bin:$PATH"' >> ~/.bashrc | ||
RUN /root/.local/bin/poetry config virtualenvs.create false | ||
RUN env -C /platipy /root/.local/bin/poetry install --without dev,docs |
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,3 @@ | ||
FROM platipy/platipy:service | ||
|
||
RUN env -C /platipy /root/.local/bin/poetry install --with dev,docs --all-extras |
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,36 @@ | ||
FROM platipy/platipy | ||
|
||
RUN env -C /platipy /root/.local/bin/poetry install --with backend | ||
|
||
RUN pip install platipy | ||
|
||
# TODO Revert to pypi version | ||
# RUN pip install git+https://github.com/pyplati/platipy.git | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
ENV PYTHONPATH "/home/service" | ||
|
||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
ENV WORK C.UTF-8 | ||
|
||
ARG dicom_listen_port=7777 | ||
|
||
ENV DICOM_LISTEN_PORT ${dicom_listen_port} | ||
ENV DICOM_LISTEN_AET PLATIPY_SERVICE | ||
|
||
RUN printf '#!/bin/bash\npython3 -m platipy.backend.manage $@\n' > /usr/bin/manage && chmod +x /usr/bin/manage | ||
|
||
EXPOSE 8000 | ||
EXPOSE ${dicom_listen_port} | ||
|
||
ENV WORK /data | ||
RUN mkdir /logs /data && chmod 0777 /logs /data | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD [ "manage" ] |
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