Spaces:
Sleeping
Sleeping
File size: 720 Bytes
c0f246c 830a73a fe6976e 0bc4572 57c09cf 71575e4 5d9daae 172fb77 fe6976e 23f7d7c fe6976e 0bc4572 fe6976e 865f898 8f0ad35 830a73a 204eaf6 c0f246c fe6976e 0bc4572 fe6976e 71575e4 0bc4572 81fde93 71575e4 0bc4572 c0f246c 830a73a c0f246c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
#FROM node:22.16.0
FROM oven/bun:1.0
# Install ffmpeg
# RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
# Create a non-root user with
RUN useradd -m -u 2000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# Set working directory
WORKDIR /app
# COPY --chown=user bun.lockb bun.lockb
# COPY --chown=user package.json package.json
#RUN bun install
COPY --chown=user package*.json ./
#RUN npm install
RUN bun install
# Copy the rest of the application source
COPY --chown=user . /app
# Expose the port if needed (optional, depending on the hosting environment)
EXPOSE 7860
EXPOSE 8000
EXPOSE 8080
# Run the Node.js application
#CMD ["node", "app.js"]
CMD ["bun", "app.js"]
|