Update Dockerfile
Browse files- 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 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|