smgc commited on
Commit
ac2602d
1 Parent(s): 81ac95d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -24
Dockerfile CHANGED
@@ -1,29 +1,6 @@
1
  # build stage
2
- FROM python:3.10 AS builder
3
-
4
- # install PDM
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
13
- FROM python:3.10-slim
14
-
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
- RUN mkdir -p ./sync && chmod 777 -R ./sync
23
-
24
 
25
  EXPOSE 8000
26
-
27
- WORKDIR /project
28
- # set command/entrypoint, adapt to fit your needs
29
- ENTRYPOINT sh /entrypoint.sh
 
1
  # build stage
2
+ FROM ghcr.io/yufeikang/raycast_api_proxy:main
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  RUN sed -i'' 's|--port 80|--port 8000|g' /entrypoint.sh
 
 
5
 
6
  EXPOSE 8000