ai_plugin_server / Dockerfile
everydaycats's picture
Update Dockerfile
bf843c1 verified
raw
history blame contribute delete
753 Bytes
# FROM node:22.16.0
FROM oven/bun:1.3.4
# 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 package files and install dependencies
#COPY --chown=user package*.json ./
# RUN npm 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"]