Skip to content

Commit

Permalink
✨ feat: /config dir ready for mounting config files #54
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed Aug 22, 2022
1 parent 72cca94 commit 490460c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ENV IS_DOCKER=true
ENV WA_DISABLE_SPINS true
ENV WA_PORT $PORT
ENV WA_EXECUTABLE_PATH=/usr/bin/google-chrome
ENV WA_CLI_CONFIG=/config
ENV CHROME_PATH=${WA_EXECUTABLE_PATH}
ENV WA_USE_CHROME=true

Expand All @@ -27,6 +28,7 @@ WORKDIR $APP_DIR
RUN <<eot bash
mkdir -p /usr/src/app
mkdir -p /usr/src/app/node_modules
mkdir -p /config
mkdir -p /sessions
apt update
apt install nano dumb-init -y
Expand Down Expand Up @@ -63,10 +65,10 @@ RUN <<eot bash
mkdir -p /home/owauser/Downloads
chown -R owauser:owauser /home/owauser
chown -R owauser:owauser /sessions
chown -R owauser:owauser /config
chown -R owauser:owauser /usr/src/app/node_modules
chown -R owauser:owauser ${WA_EXECUTABLE_PATH}
chown -R owauser:owauser /usr/bin/google-chrome
chown -R owauser:owauser /usr/bin/google-chrome
cd /usr/src/app
chown -R owauser:owauser /usr/src/app
npm i @open-wa/wa-automate@latest --ignore-scripts
Expand Down

0 comments on commit 490460c

Please sign in to comment.