xiaoyi510 / rustdesk-api-server

RustDesk Api Server
Apache License 2.0
194 stars 65 forks source link

关于docker怎么跑起来 #12

Closed qq289531426 closed 1 year ago

qq289531426 commented 1 year ago

没有介绍docker容器怎么创建,怎么让容器跑起来,自己添加的都跑失败了

xiaoyi510 commented 1 year ago

编译后把执行文件 copy到 docker 里面就行了

xiaoyi510 commented 1 year ago

FROM alpine:3.15 RUN mkdir /app

复制配置文件

COPY conf /app/conf

复制主文件

COPY rustdesk-api-server /app WORKDIR /app ENTRYPOINT ["./rustdesk-api-server"]

导出端口号

EXPOSE [21114]

这个Dockerfile 仓库也有