Skip to content

Commit

Permalink
Reverted base image, removed unused appium param install, added permi…
Browse files Browse the repository at this point in the history
…ssion to appium node_modules
  • Loading branch information
budtmo committed Feb 3, 2023
1 parent 821d447 commit 82a72fc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Appium/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:focal-20230126
FROM ubuntu:bionic-20230126

ENV DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -112,14 +112,19 @@ ENV NODE_VERSION=16
ENV APPIUM_VERSION=1.22.3
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash && \
apt-get -qqy install nodejs && \
npm install -g appium@${APPIUM_VERSION} --unsafe-perm=true --allow-root && \
npm install -g appium@${APPIUM_VERSION} && \
exit 0 && \
npm cache clean && \
apt-get remove --purge -y npm && \
apt-get autoremove --purge -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get clean

#====================================================
# Fix permission issue to download e.g. chromedriver
#====================================================
RUN chown -R 1300:1301 /usr/lib/node_modules/appium

#==============
# Copy scripts
#==============
Expand Down

0 comments on commit 82a72fc

Please sign in to comment.