Skip to content

Commit

Permalink
fix: api/worker unable to find admyral.main in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 22, 2024
1 parent 1c794d1 commit a607b14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ RUN pip install -r requirements.txt

# add admyral
COPY . .
RUN pip install -e .

EXPOSE 8000

CMD ["python", "-m", "admyral.main", "api", "--docker"]
CMD ["python", "admyral/main.py", "api", "--docker"]
5 changes: 3 additions & 2 deletions docker/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ COPY --from=nsjail /bin/nsjail /bin/nsjail

# add admyral
COPY . .
RUN pip install -e .

EXPOSE 8000
# TODO: how to differentiate between worker, workflow, and backend here? env variable or different Dockerfiles?
CMD ["python", "-m", "admyral.main", "worker", "--docker"]

CMD ["python", "admyral/main.py", "worker", "--docker"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "admyral"
version = "0.1.9"
version = "0.1.10"
description = ""
authors = ["Daniel Grittner <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit a607b14

Please sign in to comment.