Skip to content

Commit

Permalink
Merge pull request #13 from kuefmz/main
Browse files Browse the repository at this point in the history
Dockerfile
  • Loading branch information
JJ-Author authored Jun 10, 2024
2 parents d2ea034 + 4307546 commit c1af7ea
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM python:3.10.6-buster

ENV POETRY_VERSION=1.7.1

RUN apt-get update && apt-get install -y \
python3-requests \
python3-pip \
curl \
&& rm -rf /var/lib/apt/lists/*

COPY pyproject.toml .
COPY ontologytimemachine /ontologytimemachine
COPY README.md /README.md

RUN python3 -m pip install --upgrade pip

RUN pip install poetry==$POETRY_VERSION
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev && rm pyproject.toml


CMD python3 -m proxy --hostname 0.0.0.0 --port $PORT --plugins ontologytimemachine.custom_proxy.OntologyTimeMachinePlugin

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# ontology-time-machine
# ontology-time-machine


Docker command:
- docker build -t ontology_time_machine:0.1 .
- docker run -d -e PORT=8899 -p 8182:8899 ontology_time_machine:0.1
2 changes: 1 addition & 1 deletion tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def start_proxy_server():
[
'python3', '-m', 'proxy',
'--hostname', IP,
'--port', str(PORT),
'--port', PORT,
'--plugins', 'ontologytimemachine.custom_proxy.OntologyTimeMachinePlugin'
],
stdout=subprocess.PIPE,
Expand Down

0 comments on commit c1af7ea

Please sign in to comment.