Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add git to dockerfile
Browse files- Dockerfile +9 -8
Dockerfile
CHANGED
@@ -21,21 +21,22 @@ RUN pip install uv
|
|
21 |
RUN mkdir -p /app/.cache && \
|
22 |
chown -R user:user /app
|
23 |
|
24 |
-
#
|
25 |
-
COPY backend/pyproject.toml ./
|
26 |
-
RUN uv pip install -e . --system
|
27 |
-
|
28 |
-
# Copy backend code
|
29 |
-
COPY backend/ .
|
30 |
-
|
31 |
-
# Install Node.js and npm
|
32 |
RUN apt-get update && apt-get install -y \
|
|
|
33 |
curl \
|
34 |
netcat-openbsd \
|
35 |
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
36 |
&& apt-get install -y nodejs \
|
37 |
&& rm -rf /var/lib/apt/lists/*
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
# Copy frontend server and build
|
40 |
COPY --from=frontend-build /app/build ./frontend/build
|
41 |
COPY --from=frontend-build /app/package*.json ./frontend/
|
|
|
21 |
RUN mkdir -p /app/.cache && \
|
22 |
chown -R user:user /app
|
23 |
|
24 |
+
# Install git and other dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
RUN apt-get update && apt-get install -y \
|
26 |
+
git \
|
27 |
curl \
|
28 |
netcat-openbsd \
|
29 |
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
30 |
&& apt-get install -y nodejs \
|
31 |
&& rm -rf /var/lib/apt/lists/*
|
32 |
|
33 |
+
# Copy and install backend dependencies
|
34 |
+
COPY backend/pyproject.toml ./
|
35 |
+
RUN uv pip install -e . --system
|
36 |
+
|
37 |
+
# Copy backend code
|
38 |
+
COPY backend/ .
|
39 |
+
|
40 |
# Copy frontend server and build
|
41 |
COPY --from=frontend-build /app/build ./frontend/build
|
42 |
COPY --from=frontend-build /app/package*.json ./frontend/
|