-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (19 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
34 lines (19 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.13.2-alpine
# 设置工作目录
WORKDIR /app
RUN sed -i 's/dl-cdn\.alpinelinux\.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk update && \
apk add --no-cache make protobuf protobuf-dev
COPY . .
RUN pip install poetry -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
RUN make install_dev
RUN make build
FROM python:3.13.2-alpine
WORKDIR /app
COPY --from=0 /app/dist /app/dist
RUN pip install --no-cache-dir /app/dist/*.whl -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
FROM python:3.13.2-alpine
WORKDIR /app
COPY --from=1 /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
EXPOSE 50052
CMD ["python","-m","stealthimfilestorage","--config=./config/config.toml"]