Skip to content

Commit

Permalink
✨ feat: 添加新功能
Browse files Browse the repository at this point in the history
  • Loading branch information
v_wieszheng(郑市委) committed Aug 28, 2024
1 parent 3454714 commit 861886c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# --------- requirements ---------

FROM python:3.12-slim as requirements-stage
FROM python:3.12-slim as builder
WORKDIR /bread
COPY ./requirements.txt .

Expand All @@ -9,16 +8,16 @@ RUN python -m venv /bread/venv \

RUN apt update -y \
&& apt install -y tzdata wget \
&& apt clean \
&& apt clean

# --------- final image build ---------

# --------- final image build ---------
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /bread
COPY . .
COPY --from=requirements-stage /bread/venv/ /bread/venv/
COPY --from=requirements-stage /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY --from=builder /bread/venv/ /bread/venv/
COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

EXPOSE 5021
CMD ["/bread/venv/bin/supervisord", "-c", "/bread/supervisord.conf"]

0 comments on commit 861886c

Please sign in to comment.