Skip to content

Commit 10906f2

Browse files
chrisnsaaltat
authored andcommitted
shrink docker image a little
1 parent 6f99b59 commit 10906f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docker/Dockerfile.latest_release

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM mcr.microsoft.com/playwright:v1.30.0-focal
22

33
# Add pip
44
USER root
5-
RUN apt-get update
6-
RUN apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
5+
RUN apt-get update && \
6+
apt-get install -y python3 python3-pip && \
7+
rm -rf /var/lib/apt/lists/*
78

89
ENV PATH="/home/pwuser/.local/bin:${PATH}"
910
ENV NODE_PATH=/usr/lib/node_modules
@@ -12,8 +13,7 @@ ENV NODE_PATH=/usr/lib/node_modules
1213
# RUN chmod a+rwx -R /home/pwuser/.cache
1314

1415
USER pwuser
15-
RUN pip3 install --no-cache-dir --upgrade pip wheel
16-
RUN pip3 --version
17-
RUN pip3 install --no-cache-dir --user --upgrade robotframework robotframework-browser==18.4.0
18-
19-
RUN python3 -m Browser.entry init
16+
RUN pip3 install --no-cache-dir --upgrade pip wheel && \
17+
pip3 --version && \
18+
pip3 install --no-cache-dir --user --upgrade robotframework robotframework-browser==18.4.0
19+
python3 -m Browser.entry init

0 commit comments

Comments
 (0)