Spaces:
Running
Running
File size: 555 Bytes
7e246db ca945f0 7e246db ca945f0 7e246db ca945f0 7e246db ca945f0 7e246db ca945f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use a lightweight Node.js image with necessary build tools
FROM node:18-bullseye
# Install system dependencies (git is required for cloning)
RUN apt-get update && apt-get install -y git
# Set working directory
WORKDIR /app
# Clone repository (ensure correct structure)
RUN git clone https://github.com/BNNUSA/Binace-Clone.git . # Note the '.' at end
# Install project dependencies
RUN npm install
# Expose the correct port (verify your application's port)
EXPOSE 7860
# Start the application (verify entry file location)
CMD ["node", "server.js"] |