index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
path: root/Dockerfile
diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..77e51ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM node + +RUN apt-get update -qq -y && \ + apt-get install -y \ + libasound2 \ + libatk-bridge2.0-0 \ + libgtk-4-1 \ + libnss3 \ + xdg-utils \ + wget && \ + wget -q -O chrome-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/linux64/chrome-linux64.zip && \ + unzip chrome-linux64.zip && \ + rm chrome-linux64.zip && \ + mv chrome-linux64 /opt/chrome/ && \ + ln -s /opt/chrome/chrome /usr/local/bin/ && \ + wget -q -O chromedriver-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/linux64/chromedriver-linux64.zip && \ + unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \ + rm chromedriver-linux64.zip && \ + mv chromedriver /usr/local/bin/ + +WORKDIR /usr/src/app +COPY package*.json . + +ENV CHROMEDRIVER_SKIP_DOWNLOAD=true + +RUN npm install --omit=dev +RUN npm install chromedriver + +COPY . . + +CMD [ "npm", "start" ] |