-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from kuefmz/main
Dockerfile
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 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,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 | ||
|
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 +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 |
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