Skip to content

Commit

Permalink
Merge pull request #62 from Project-OMOTES/61-add-devdockerfile-to-ru…
Browse files Browse the repository at this point in the history
…n-in-docker-with-local-codesdkprotocol

61 add devdockerfile to run in docker with local codesdkprotocol
  • Loading branch information
MarkTNO authored Jul 18, 2024
2 parents 180b8c8 + f68aa2d commit 772732a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 1 addition & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ coolprop==6.6.0
# -c requirements.txt
# mesido
coverage[toml]==7.4.1
# via
# coverage
# pytest-cov
# via pytest-cov
exceptiongroup==1.2.0
# via pytest
flake8==6.1.0
Expand Down
15 changes: 15 additions & 0 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.8-slim-buster

WORKDIR /app

COPY optimizer-worker/requirements.txt /app/grow_worker/requirements.txt
RUN pip install -r /app/grow_worker/requirements.txt --no-cache-dir

COPY ../omotes-sdk-protocol/python/ /omotes-sdk-protocol/python/
COPY ../omotes-sdk-python/ /omotes-sdk-python/
RUN pip install /omotes-sdk-python/
RUN pip install /omotes-sdk-protocol/python/

COPY optimizer-worker/src/grow_worker /app/grow_worker/

CMD ["python3", "-m", "grow_worker.worker"]

0 comments on commit 772732a

Please sign in to comment.