Commit 9e8d772 1 parent 9ef188f commit 9e8d772 Copy full SHA for 9e8d772
File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- # Build Stage
2
- FROM python:3.11-slim-bullseye AS build
1
+ FROM python:3.11.3-slim AS build
3
2
4
3
ENV DEBIAN_FRONTEND=noninteractive
5
4
# Build dummy packages to skip installing them and their dependencies -- Copied from FlareSolverr
@@ -22,23 +21,19 @@ RUN pip install -r requirements.txt && \
22
21
pip install uvloop
23
22
24
23
# 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
26
26
27
27
WORKDIR /opt/SassBot
28
28
29
- ENV DEBIAN_FRONTEND=noninteractive
30
- ENV PATH=/venv/bin:$PATH
31
- COPY --from=build /*.deb /
32
- COPY --from=build /venv /venv
33
-
34
29
RUN apt update -y && apt install -y --no-install-recommends chromium xvfb \
35
30
# Remove temporary files and hardware decoding libraries -- Copied from FlareSolverr
36
31
&& rm -rf /var/lib/apt/lists/* \
37
32
&& rm -f /usr/lib/x86_64-linux-gnu/libmfxhw* \
38
33
&& rm -f /usr/lib/x86_64-linux-gnu/mfx/*
39
34
35
+ COPY --from=build /venv /venv
36
+ ENV PATH=/venv/bin:$PATH
40
37
COPY . .
41
38
42
- RUN chmod +x docker-entrypoint.sh
43
-
44
- ENTRYPOINT ["/bin/sh" , "-c" , "./docker-entrypoint.sh" ]
39
+ RUN chmod +x docker-entrypoint.sh
You can’t perform that action at this time.
0 commit comments