Skip to content

Commit 9e8d772

Browse files
committed
dockerfile fix
1 parent 9ef188f commit 9e8d772

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Dockerfile

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Build Stage
2-
FROM python:3.11-slim-bullseye AS build
1+
FROM python:3.11.3-slim AS build
32

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

2423
# Buidling final image, moving over venv
25-
FROM python:3.11-slim-bullseye
24+
FROM python:3.11.3-slim
25+
ENV DEBIAN_FRONTEND=noninteractive
2626

2727
WORKDIR /opt/SassBot
2828

29-
ENV DEBIAN_FRONTEND=noninteractive
30-
ENV PATH=/venv/bin:$PATH
31-
COPY --from=build /*.deb /
32-
COPY --from=build /venv /venv
33-
3429
RUN apt update -y && apt install -y --no-install-recommends chromium xvfb \
3530
# Remove temporary files and hardware decoding libraries -- Copied from FlareSolverr
3631
&& rm -rf /var/lib/apt/lists/* \
3732
&& rm -f /usr/lib/x86_64-linux-gnu/libmfxhw* \
3833
&& rm -f /usr/lib/x86_64-linux-gnu/mfx/*
3934

35+
COPY --from=build /venv /venv
36+
ENV PATH=/venv/bin:$PATH
4037
COPY . .
4138

42-
RUN chmod +x docker-entrypoint.sh
43-
44-
ENTRYPOINT ["/bin/sh", "-c", "./docker-entrypoint.sh"]
39+
RUN chmod +x docker-entrypoint.sh

0 commit comments

Comments
 (0)