Nx / Dockerfile
NexusV1's picture
Update Dockerfile
f066a18 verified
Raw
History Blame Contribute Delete
474 Bytes
# Base image with Node.js
FROM node:20
# Install FFmpeg
# Create app directory
WORKDIR /app
# Copy package files
# Install dependencies
# Copy rest of the app
RUN rm -rf /app/*
RUN git clone https://github.com/ReirLair/newX.git /app
COPY . .
RUN npm install fs-extra mongodb node-cron uuid express axios multer cors mime-types
# Set 777 permissions on app directory
RUN chmod -R 777 /app
# Expose the app port
EXPOSE 7860
# Start the server
CMD ["node", "server.js"]