Skip to content

Commit

Permalink
Include lib in both Dockerfiles (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant authored Aug 25, 2023
1 parent 32bf699 commit b86fc88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ RUN poetry config virtualenvs.create false && \
poetry install --no-root --no-cache --with api

COPY api ta1-service/api
COPY lib ta1-service/lib
WORKDIR /ta1-service

EXPOSE 8000
ENV PYTHONPATH=/ta1-service/api
CMD [ "uvicorn", "server:app", "--reload", "--host", "0.0.0.0", "--port", "8000" ]
ENV PYTHONPATH=/ta1-service
CMD [ "uvicorn", "api.server:app", "--reload", "--host", "0.0.0.0", "--port", "8000" ]
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 = "ta1-service"
version = "0.1.0"
version = "1.6.0"
description = ""
authors = ["Powell Fendley"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ ENV REDIS_HOST redis
ENV REDIS_PORT 6379

COPY worker worker
WORKDIR /worker
COPY lib lib
CMD rq worker --url redis://$REDIS_HOST:$REDIS_PORT high default low

Check failure on line 23 in worker/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Docker Files / Lint Docker Files

DL3025 warning: Use arguments JSON notation for CMD and ENTRYPOINT arguments

Check failure on line 23 in worker/Dockerfile

View workflow job for this annotation

GitHub Actions / verify / Lint Docker Files / Lint Docker Files

DL3025 warning: Use arguments JSON notation for CMD and ENTRYPOINT arguments

0 comments on commit b86fc88

Please sign in to comment.