Skip to content

Commit

Permalink
fix: install without virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Nov 26, 2023
1 parent e186c69 commit 6879ec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ COPY backend ./backend
COPY --from=build /usr/src/app/frontend ./frontend

RUN pip install --no-cache-dir -r requirements.txt \
&& poetry config virtualenvs.create false \
&& poetry install --without dev

COPY circus.ini /etc/circus.ini
Expand All @@ -39,4 +40,4 @@ ENV SPAMASSASSIN_PORT=7833
ENV PORT=8000
EXPOSE $PORT

CMD ["poetry", "run", "circusd", "/etc/circus.ini"]
CMD ["circusd", "/etc/circus.ini"]
2 changes: 1 addition & 1 deletion circus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ statsd = True

[watcher:web]
working_dir = /usr/src/app
cmd = /usr/local/bin/poetry run backend.main:app --fd $(circus.sockets.web)
cmd = /usr/local/bin/uvicorn run backend.main:app --fd $(circus.sockets.web)
use_sockets = True
stderr_stream.class=StdoutStream
copy_env=True
Expand Down

0 comments on commit 6879ec3

Please sign in to comment.