Create Dockerfile

This commit is contained in:
scavin 2022-06-28 15:33:41 +08:00 committed by GitHub
parent 314d508678
commit 151130c142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:16
MAINTAINER Scavin <scavin@appinn.com>
ENV LANG C.UTF-8
WORKDIR /ws-scrcpy
RUN npm install -g node-gyp
RUN apt update;apt install android-tools-adb -y
RUN git clone https://github.com/NetrisTV/ws-scrcpy.git .
RUN npm install
RUN npm run dist
EXPOSE 8000
CMD ["node","dist/index.js"]