Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +15 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
|
|
| 1 |
FROM node:lts-buster
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# Clone the repository
|
| 4 |
RUN git clone https://github.com/lyfe00011/levanter /home/suhail
|
| 5 |
|
|
@@ -15,7 +29,7 @@ WORKDIR /home/suhail
|
|
| 15 |
# Copy the server.js file into the working directory
|
| 16 |
COPY server.js .
|
| 17 |
|
| 18 |
-
# Install dependencies
|
| 19 |
RUN npm install || yarn install
|
| 20 |
|
| 21 |
# Create the start.sh script directly
|
|
|
|
| 1 |
+
Use Node.js LTS (Buster) as the base image
|
| 2 |
FROM node:lts-buster
|
| 3 |
|
| 4 |
+
# Install FFmpeg, ImageMagick, and other essential tools
|
| 5 |
+
RUN apt-get update && \
|
| 6 |
+
apt-get install -y \
|
| 7 |
+
ffmpeg \
|
| 8 |
+
imagemagick \
|
| 9 |
+
ghostscript \
|
| 10 |
+
libreoffice \
|
| 11 |
+
libwebp-dev \
|
| 12 |
+
tesseract-ocr \
|
| 13 |
+
sox \
|
| 14 |
+
&& apt-get clean \
|
| 15 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
+
|
| 17 |
# Clone the repository
|
| 18 |
RUN git clone https://github.com/lyfe00011/levanter /home/suhail
|
| 19 |
|
|
|
|
| 29 |
# Copy the server.js file into the working directory
|
| 30 |
COPY server.js .
|
| 31 |
|
| 32 |
+
# Install dependencies (try npm first, fall back to yarn)
|
| 33 |
RUN npm install || yarn install
|
| 34 |
|
| 35 |
# Create the start.sh script directly
|