Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -16,6 +16,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 16 |
wget \
|
| 17 |
ca-certificates \
|
| 18 |
sudo \
|
|
|
|
|
|
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
# Create and activate virtual environment
|
|
@@ -38,6 +40,9 @@ RUN mkdir -p /app/.ollama/models && \
|
|
| 38 |
COPY app.py .
|
| 39 |
COPY startup.sh .
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
# Make startup script executable
|
| 42 |
RUN chmod +x startup.sh
|
| 43 |
|
|
|
|
| 16 |
wget \
|
| 17 |
ca-certificates \
|
| 18 |
sudo \
|
| 19 |
+
dos2unix \ # <--- ADDED: Install dos2unix to convert line endings
|
| 20 |
+
git \ # <--- OPTIONAL: Added 'git' as it's often useful, but not strictly needed for this error.
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
# Create and activate virtual environment
|
|
|
|
| 40 |
COPY app.py .
|
| 41 |
COPY startup.sh .
|
| 42 |
|
| 43 |
+
# Fix line endings of startup.sh (CRITICAL for "exec format error")
|
| 44 |
+
RUN dos2unix startup.sh
|
| 45 |
+
|
| 46 |
# Make startup script executable
|
| 47 |
RUN chmod +x startup.sh
|
| 48 |
|