Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -18,6 +18,15 @@ RUN go install github.com/projectdiscovery/katana/cmd/katana@latest
|
|
18 |
ENV GOPATH=/go
|
19 |
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
# Create and activate a virtual environment for Python
|
22 |
RUN python3 -m venv /app/venv
|
23 |
ENV PATH="/app/venv/bin:$PATH"
|
@@ -27,10 +36,6 @@ COPY requirements.txt /app/requirements.txt
|
|
27 |
RUN pip install --upgrade pip \
|
28 |
&& pip install -r /app/requirements.txt
|
29 |
|
30 |
-
# Set MPLCONFIGDIR to a writable directory
|
31 |
-
ENV MPLCONFIGDIR=/tmp/.matplotlib
|
32 |
-
|
33 |
-
|
34 |
# Copy the Gradio app code to the container
|
35 |
COPY app.py /app/app.py
|
36 |
|
|
|
18 |
ENV GOPATH=/go
|
19 |
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
|
20 |
|
21 |
+
# Set MPLCONFIGDIR to a writable directory
|
22 |
+
ENV MPLCONFIGDIR=/tmp/.matplotlib
|
23 |
+
|
24 |
+
# Create a writable directory for Katana's config
|
25 |
+
RUN mkdir -p /tmp/katana
|
26 |
+
|
27 |
+
# Set the environment variable for Katana's config directory
|
28 |
+
ENV KATANA_CONFIG=/tmp/katana
|
29 |
+
|
30 |
# Create and activate a virtual environment for Python
|
31 |
RUN python3 -m venv /app/venv
|
32 |
ENV PATH="/app/venv/bin:$PATH"
|
|
|
36 |
RUN pip install --upgrade pip \
|
37 |
&& pip install -r /app/requirements.txt
|
38 |
|
|
|
|
|
|
|
|
|
39 |
# Copy the Gradio app code to the container
|
40 |
COPY app.py /app/app.py
|
41 |
|