Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -10,12 +10,18 @@ RUN apt-get update && apt-get install -y libsndfile1 ffmpeg wget
|
|
| 10 |
# Create cache directories and set permissions
|
| 11 |
RUN mkdir -p /tmp/.cache/fontconfig && \
|
| 12 |
mkdir -p /tmp/.cache/numba && \
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
# Set environment variables for caching
|
| 16 |
ENV XDG_CACHE_HOME=/tmp/.cache
|
| 17 |
ENV NUMBA_CACHE_DIR=/tmp/.cache/numba
|
| 18 |
ENV NUMBA_DISABLE_FUNCTION_CACHING=1
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# Copy the current directory contents into the container
|
| 21 |
COPY . /app
|
|
@@ -39,7 +45,6 @@ RUN pip install --no-cache-dir python-dotenv \
|
|
| 39 |
&& pip install --no-cache-dir TTS
|
| 40 |
|
| 41 |
# Install openvscode-server - Using a specific version URL instead of latest
|
| 42 |
-
# Method 1: Use a specific version that's known to work
|
| 43 |
RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.76.0/openvscode-server-v1.76.0-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && \
|
| 44 |
tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
|
| 45 |
rm /tmp/openvscode-server.tar.gz && \
|
|
|
|
| 10 |
# Create cache directories and set permissions
|
| 11 |
RUN mkdir -p /tmp/.cache/fontconfig && \
|
| 12 |
mkdir -p /tmp/.cache/numba && \
|
| 13 |
+
mkdir -p /tmp/.cache/matplotlib && \
|
| 14 |
+
mkdir -p /tmp/.local/share/TTS && \
|
| 15 |
+
chmod -R 777 /tmp/.cache && \
|
| 16 |
+
chmod -R 777 /tmp/.local
|
| 17 |
|
| 18 |
+
# Set environment variables for caching and directory paths
|
| 19 |
ENV XDG_CACHE_HOME=/tmp/.cache
|
| 20 |
ENV NUMBA_CACHE_DIR=/tmp/.cache/numba
|
| 21 |
ENV NUMBA_DISABLE_FUNCTION_CACHING=1
|
| 22 |
+
ENV MPLCONFIGDIR=/tmp/.cache/matplotlib
|
| 23 |
+
ENV HOME=/tmp
|
| 24 |
+
ENV COQUI_TTS_CACHE_DIR=/tmp/.local/share/TTS
|
| 25 |
|
| 26 |
# Copy the current directory contents into the container
|
| 27 |
COPY . /app
|
|
|
|
| 45 |
&& pip install --no-cache-dir TTS
|
| 46 |
|
| 47 |
# Install openvscode-server - Using a specific version URL instead of latest
|
|
|
|
| 48 |
RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.76.0/openvscode-server-v1.76.0-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && \
|
| 49 |
tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
|
| 50 |
rm /tmp/openvscode-server.tar.gz && \
|