Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectly-preserved-pie authored Jun 18, 2024
2 parents d6fd688 + 294ddd9 commit 4f3c9e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ RUN apt-get update && apt-get install -y curl
# Using uv to install packages because it's fast as fuck boiiii
# https://www.youtube.com/watch?v=6E7ZGCfruaw
# https://ryxcommar.com/2024/02/15/how-to-cut-your-python-docker-builds-in-half-with-uv/
ENV VIRTUAL_ENV=/usr/local
ADD --chmod=655 https://astral.sh/uv/install.sh /install.sh
RUN /install.sh && rm /install.sh
RUN /root/.cargo/bin/uv pip install --no-cache -r requirements.txt
RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt

COPY . ./

Expand All @@ -20,4 +19,4 @@ COPY . ./
# Set the number of workers to 10.
# Preload the app to avoid the overhead of loading the app for each worker. See https://www.joelsleppy.com/blog/gunicorn-application-preloading/
# Set the app to be the server variable in app.py.
CMD ["gunicorn", "-b", "0.0.0.0:80", "-k", "gevent", "--workers=10", "--preload", "app:server"]
CMD ["gunicorn", "-b", "0.0.0.0:80", "-k", "gevent", "--workers=10", "--preload", "app:server"]
Binary file modified assets/datasets/buy.parquet
Binary file not shown.
Binary file modified assets/datasets/lease.parquet
Binary file not shown.

0 comments on commit 4f3c9e8

Please sign in to comment.