Skip to content

Commit

Permalink
dockerfile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bombg committed Nov 22, 2024
1 parent 5b65e65 commit d8324fb
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]
RUN chmod +x docker-entrypoint.sh

0 comments on commit d8324fb

Please sign in to comment.