Update Dockerfile
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
|
@@ -5,13 +5,8 @@ FROM python:3.10 AS builder
|
|
| 5 |
RUN pip install -U pip setuptools wheel
|
| 6 |
RUN pip install pdm
|
| 7 |
|
| 8 |
-
RUN git clone https://github.com/yufeikang/raycast_api_proxy.git .
|
| 9 |
-
|
| 10 |
-
# copy files
|
| 11 |
-
COPY pyproject.toml pdm.lock README.md /project/
|
| 12 |
-
|
| 13 |
-
# install dependencies and project into the local packages directory
|
| 14 |
WORKDIR /project
|
|
|
|
| 15 |
RUN mkdir __pypackages__ && pdm install --prod --no-lock --no-editable
|
| 16 |
|
| 17 |
# run stage
|
|
@@ -20,8 +15,8 @@ FROM python:3.10-slim
|
|
| 20 |
# retrieve packages from build stage
|
| 21 |
ENV PYTHONPATH=/project/pkgs
|
| 22 |
COPY --from=builder /project/__pypackages__/3.10/lib /project/pkgs
|
| 23 |
-
COPY --from=builder /app /project/app
|
| 24 |
-
COPY --from=builder /scripts/entrypoint.sh /
|
| 25 |
|
| 26 |
RUN sed -i'' 's|--port 80|--port 8000|g' /entrypoint.sh
|
| 27 |
|
|
|
|
| 5 |
RUN pip install -U pip setuptools wheel
|
| 6 |
RUN pip install pdm
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
WORKDIR /project
|
| 9 |
+
RUN git clone https://github.com/yufeikang/raycast_api_proxy.git .
|
| 10 |
RUN mkdir __pypackages__ && pdm install --prod --no-lock --no-editable
|
| 11 |
|
| 12 |
# run stage
|
|
|
|
| 15 |
# retrieve packages from build stage
|
| 16 |
ENV PYTHONPATH=/project/pkgs
|
| 17 |
COPY --from=builder /project/__pypackages__/3.10/lib /project/pkgs
|
| 18 |
+
COPY --from=builder /project/app /project/app
|
| 19 |
+
COPY --from=builder /project/scripts/entrypoint.sh /
|
| 20 |
|
| 21 |
RUN sed -i'' 's|--port 80|--port 8000|g' /entrypoint.sh
|
| 22 |
|