Skip to content

Commit

Permalink
Merge pull request #27 from smswithoutborders/staging
Browse files Browse the repository at this point in the history
chore: Improve Docker build process
  • Loading branch information
PromiseFru authored Dec 10, 2024
2 parents dba67be + bd7c8b2 commit 90606ac
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
FROM python:3.13.1-slim

RUN apt-get update && \
apt-get install -y --no-install-recommends \
WORKDIR /bridge_server

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
pkg-config && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

WORKDIR /

COPY requirements.txt .

RUN pip install --disable-pip-version-check --quiet --no-cache-dir setuptools && \
pip install --disable-pip-version-check --quiet --no-cache-dir -r requirements.txt

COPY . .

RUN pip install -U --quiet --no-cache-dir pip setuptools && \
pip install --quiet --no-cache-dir -r requirements.txt && \
make setup && \
RUN make setup && \
find bridges/ -type f -name "requirements.txt" -exec pip install --quiet --no-cache-dir -r {} \;

ENV MODE=production
Expand Down

0 comments on commit 90606ac

Please sign in to comment.