Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -31,7 +31,7 @@ COPY tests.py /app/tests.py
|
|
31 |
# --- Build Stage ---
|
32 |
# Temporarily switch to root for package installation
|
33 |
USER root
|
34 |
-
|
35 |
# Install Node.js dependencies first (leverages layer cache if package.json doesn't change often)
|
36 |
# Assuming package.json is in /app/api in the base image or copied before
|
37 |
# If not, uncomment and adjust COPY commands if needed:
|
@@ -45,7 +45,7 @@ RUN wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz -O
|
|
45 |
# Reduces layers and removes build tools afterwards
|
46 |
RUN apk add --no-cache --virtual .build-deps \
|
47 |
build-base \
|
48 |
-
|
49 |
gcc \
|
50 |
libc-dev \
|
51 |
mpc1-dev \
|
|
|
31 |
# --- Build Stage ---
|
32 |
# Temporarily switch to root for package installation
|
33 |
USER root
|
34 |
+
RUN sed -i 's/#\(.*\/community\)/\1/' /etc/apk/repositories
|
35 |
# Install Node.js dependencies first (leverages layer cache if package.json doesn't change often)
|
36 |
# Assuming package.json is in /app/api in the base image or copied before
|
37 |
# If not, uncomment and adjust COPY commands if needed:
|
|
|
45 |
# Reduces layers and removes build tools afterwards
|
46 |
RUN apk add --no-cache --virtual .build-deps \
|
47 |
build-base \
|
48 |
+
sudo \
|
49 |
gcc \
|
50 |
libc-dev \
|
51 |
mpc1-dev \
|