Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12347 unmodified lines1213141516171819202 unmodified lines23242526FROM node:19# Install ffmpeg# RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*7 unmodified lines# Set working directoryWORKDIR /app# Copy package files and install dependenciesCOPY --chown=user package*.json ./RUN npm install# Copy the rest of the application sourceCOPY --chown=user . /app2 unmodified linesEXPOSE 7860# Run the Node.js applicationCMD ["node", "app.js"]1234567 unmodified lines1415161718192021222324252627282 unmodified lines313233343536# FROM node:19FROM oven/bun:1.0# Install ffmpeg# RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*7 unmodified lines# Set working directoryWORKDIR /appCOPY --chown=user bun.lockb bun.lockbCOPY --chown=user package.json package.jsonRUN bun install# Copy package files and install dependencies#COPY --chown=user package*.json ./#RUN npm install# Copy the rest of the application sourceCOPY --chown=user . /app2 unmodified linesEXPOSE 7860# Run the Node.js application#CMD ["node", "app.js"]CMD ["bun", "app.js"]
Dockerfile+14-4