-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dockerfile, docker container build and usage instructions
- Loading branch information
1 parent
09ab2ff
commit 32ab933
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM alpine:3.14 AS builder | ||
|
||
ADD . /ws-scrcpy | ||
RUN apk add --no-cache git nodejs npm python3 make g++ | ||
|
||
WORKDIR /ws-scrcpy | ||
RUN npm install | ||
RUN npm run dist | ||
|
||
WORKDIR dist | ||
RUN npm install | ||
|
||
FROM alpine:3.14 AS runner | ||
LABEL maintainer="Vitaly Repin <vitaly.repin@gmail.com>" | ||
|
||
RUN apk add --no-cache android-tools npm | ||
COPY --from=builder /ws-scrcpy /root/ws-scrcpy | ||
|
||
WORKDIR /root/ws-scrcpy | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters