Skip to content

Commit 7bc1453

Browse files
authored
1 parent 70347df commit 7bc1453

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM alpine:3.14 AS builder
2+
3+
ADD . /ws-scrcpy
4+
RUN apk add --no-cache git nodejs npm python3 make g++
5+
6+
WORKDIR /ws-scrcpy
7+
RUN npm install
8+
RUN npm run dist
9+
10+
WORKDIR dist
11+
RUN npm install
12+
13+
FROM alpine:latest AS runner
14+
RUN apk add --no-cache android-tools npm
15+
COPY --from=builder /ws-scrcpy /root/ws-scrcpy
16+
17+
WORKDIR /root/ws-scrcpy
18+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)