server2 / Dockerfile
PyxiLabs's picture
Upload Dockerfile
16b2d82 verified
raw
history blame
427 Bytes
# Use the Node.js 18 slim image as a parent image
FROM node:18-slim
# Install git (required for cloning the repository)
RUN apt-get update && apt-get install -y git
# Set the working directory in the container
WORKDIR /app
# Clone the repository
RUN git clone https://github.com/itzzzme/anime-api.git .
# Install the dependencies
RUN npm install
# Expose port 7860
EXPOSE 7860
# Start the application
CMD ["npm", "start"]