Skip to content

Commit

Permalink
dockerfile improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Bombg committed Nov 22, 2024
1 parent 501abc2 commit 9ef188f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Stage
FROM python:3.11.3-slim AS build
FROM python:3.11-slim-bullseye AS build

ENV DEBIAN_FRONTEND=noninteractive
# Build dummy packages to skip installing them and their dependencies -- Copied from FlareSolverr
Expand All @@ -22,21 +22,21 @@ RUN pip install -r requirements.txt && \
pip install uvloop

# Buidling final image, moving over venv
FROM python:3.11.3-slim

ENV DEBIAN_FRONTEND=noninteractive
FROM python:3.11-slim-bullseye

WORKDIR /opt/SassBot

ENV DEBIAN_FRONTEND=noninteractive
ENV PATH=/venv/bin:$PATH
COPY --from=build /*.deb /
COPY --from=build /venv /venv

RUN apt update -y && apt install -y --no-install-recommends chromium xvfb \
# Remove temporary files and hardware decoding libraries -- Copied from FlareSolverr
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /usr/lib/x86_64-linux-gnu/libmfxhw* \
&& rm -f /usr/lib/x86_64-linux-gnu/mfx/*

COPY --from=build /venv /venv
ENV PATH=/venv/bin:$PATH

COPY . .

RUN chmod +x docker-entrypoint.sh
Expand Down

0 comments on commit 9ef188f

Please sign in to comment.