Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -27,17 +27,21 @@ RUN apt-get update && apt-get install -y \
|
|
27 |
RUN python -m pip install --upgrade pip
|
28 |
RUN pip install --no-cache-dir -r requirements.txt
|
29 |
|
30 |
-
# Install
|
31 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
32 |
|
33 |
# Expose the port the application uses (replace 11434 with the actual port)
|
34 |
EXPOSE 11434
|
35 |
|
|
|
36 |
COPY . .
|
37 |
|
38 |
# Set proper permissions for the translations directory
|
39 |
RUN chmod -R 777 translations
|
40 |
|
|
|
|
|
|
|
41 |
|
42 |
-
# Define the command to run the
|
43 |
-
CMD ["
|
|
|
27 |
RUN python -m pip install --upgrade pip
|
28 |
RUN pip install --no-cache-dir -r requirements.txt
|
29 |
|
30 |
+
# Install Ollama
|
31 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
32 |
|
33 |
# Expose the port the application uses (replace 11434 with the actual port)
|
34 |
EXPOSE 11434
|
35 |
|
36 |
+
# Copy the entire application
|
37 |
COPY . .
|
38 |
|
39 |
# Set proper permissions for the translations directory
|
40 |
RUN chmod -R 777 translations
|
41 |
|
42 |
+
# Copy the init script
|
43 |
+
COPY init.sh /app/init.sh
|
44 |
+
RUN chmod +x /app/init.sh
|
45 |
|
46 |
+
# Define the command to run the init script
|
47 |
+
CMD ["/bin/bash", "/app/init.sh"]
|