From 9e8d7729d21a90cb9c4c25b95b14b33964807b38 Mon Sep 17 00:00:00 2001 From: Joshua Gottlieb Date: Fri, 22 Nov 2024 07:49:43 -0600 Subject: [PATCH] dockerfile fix --- Dockerfile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index b799b6d..d1079f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -# Build Stage -FROM python:3.11-slim-bullseye AS build +FROM python:3.11.3-slim AS build ENV DEBIAN_FRONTEND=noninteractive # Build dummy packages to skip installing them and their dependencies -- Copied from FlareSolverr @@ -22,23 +21,19 @@ RUN pip install -r requirements.txt && \ pip install uvloop # Buidling final image, moving over venv -FROM python:3.11-slim-bullseye +FROM python:3.11.3-slim +ENV DEBIAN_FRONTEND=noninteractive 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 - -ENTRYPOINT ["/bin/sh", "-c", "./docker-entrypoint.sh"] \ No newline at end of file +RUN chmod +x docker-entrypoint.sh \ No newline at end of file