Skip to content

Commit

Permalink
Include lib in both Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant committed Aug 25, 2023
1 parent 32bf699 commit 769995e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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 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

0 comments on commit 769995e

Please sign in to comment.