Skip to content

Commit 9c4c174

Browse files
authored
Merge RUN instructions
Docker "best practices" for creating less layers
1 parent 5885ede commit 9c4c174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ FROM public.ecr.aws/lambda/python@sha256:7c0b6f5a3937f34b2ff0553898dce1a8711c3da
99
RUN dnf install -y atk cups-libs gtk3 libXcomposite alsa-lib \
1010
libXcursor libXdamage libXext libXi libXrandr libXScrnSaver \
1111
libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb \
12-
xorg-x11-xauth dbus-glib dbus-glib-devel nss mesa-libgbm
13-
RUN pip install selenium==4.34.2
12+
xorg-x11-xauth dbus-glib dbus-glib-devel nss mesa-libgbm && \
13+
pip install selenium==4.34.2
1414
COPY --from=build /opt/chrome-linux64 /opt/chrome
1515
COPY --from=build /opt/chromedriver-linux64 /opt/
1616
COPY main.py ./

0 commit comments

Comments
 (0)