sfun commited on
Commit
c5a5055
1 Parent(s): a1b6a11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -4,8 +4,17 @@ FROM ghcr.io/yufeikang/raycast_api_proxy:main AS builder
4
  # run stage
5
  FROM caddy:alpine AS runner
6
 
7
- RUN apk add --no-cache python3 py3-pip && \
8
- pip3 install grpcio
 
 
 
 
 
 
 
 
 
9
 
10
  # retrieve packages from build stage
11
  ENV PYTHONPATH=/project/pkgs
 
4
  # run stage
5
  FROM caddy:alpine AS runner
6
 
7
+ # Install python3 and pip
8
+ RUN apk add --no-cache python3 py3-pip
9
+
10
+ # Create a virtual environment
11
+ RUN python3 -m venv /venv
12
+
13
+ # Activate the virtual environment and install grpcio
14
+ RUN /venv/bin/pip install grpcio
15
+
16
+ # Set the virtual environment as the default Python environment
17
+ ENV PATH="/venv/bin:$PATH"
18
 
19
  # retrieve packages from build stage
20
  ENV PYTHONPATH=/project/pkgs