Initial updates server repository commit.
Reinitialize repository history and exclude generated OTA artifact outputs. Made-with: Cursor
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# 使用Debian bookworm-slim作为生产镜像
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# 安装必要的运行时依赖
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
tzdata \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& apt-get clean
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 从宿主机复制编译好的二进制文件
|
||||
COPY server ./expo-updates-server
|
||||
|
||||
# 给可执行文件添加执行权限
|
||||
RUN chmod +x ./expo-updates-server
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 3001
|
||||
|
||||
# 默认命令
|
||||
CMD ["./expo-updates-server"]
|
||||
Reference in New Issue
Block a user