Skip to content

Commit

Permalink
Merge pull request #109 from maii-chgk/docker_image_size
Browse files Browse the repository at this point in the history
reduce docker image size
  • Loading branch information
razumau authored Jul 12, 2024
2 parents b98b53b + c184c91 commit 63a7ce3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ fly.toml
.env
*.log
.DS_Store
venv/

6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.12-bookworm
ARG PYTHON_VERSION=3.12-slim-bookworm

FROM python:${PYTHON_VERSION}

Expand All @@ -13,7 +13,9 @@ COPY requirements.txt /tmp/requirements.txt

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y curl
apt-get install -y curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN set -ex && \
pip install --upgrade pip && \
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ pytz==2023.3.post1
six==1.16.0
sqlparse==0.4.4
python-dotenv==1.0.0
mmh3==3.1.0
mmh3==4.1.0
numpy==1.26.1

0 comments on commit 63a7ce3

Please sign in to comment.