Skip to content

Commit

Permalink
update dockerfile to use multistage build to reduce image build time …
Browse files Browse the repository at this point in the history
…when docker-compose command is run

Signed-off-by: Mbaoma <[email protected]>
  • Loading branch information
Mbaoma committed Nov 6, 2024
1 parent af977e3 commit 1950c93
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && apt-get -y install \
python3-dev \
python3-venv \
wget \
curl \
curl \
postgresql-client \
libpq-dev \
&& apt-get clean \
Expand Down Expand Up @@ -51,13 +51,16 @@ FROM python:3.11-slim-bullseye AS runtime
LABEL maintainer="[email protected]"
LABEL version="0.76.5"

# Install runtime dependencies
# Install runtime dependencies, including jq, curl, and wget
RUN apt-get update && apt-get install -y \
postgresql-client \
firefox-esr \
chromium \
tar \
chromium-driver \
jq \
wget \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -91,5 +94,4 @@ ENV PATH="/opt/venv/bin:/root/.cargo/bin:${PATH}"

EXPOSE 5000
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
#ENTRYPOINT ["/entrypoint.sh"]
CMD /init.sh
CMD ["/init.sh"]

0 comments on commit 1950c93

Please sign in to comment.