File size: 519 Bytes
a6c6c96
 
0430743
a6c6c96
 
daa1ad3
a6c6c96
daa1ad3
 
a6c6c96
 
daa1ad3
a6c6c96
0430743
daa1ad3
5d069bc
 
 
85f2922
a6c6c96
daa1ad3
85f2922
a6c6c96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use the official Node.js 18 base image
FROM node:18-slim

# Set the working directory inside the container
WORKDIR /usr/src/app

# Copy the package.json and package-lock.json if available
COPY package*.json ./

# Install the app dependencies
RUN npm install --production

# Copy the rest of the application code to the container
COPY . .

# Set environment variable to production
ENV NODE_ENV=production

# Expose the port Hugging Face Spaces will bind to
EXPOSE 3000

# Command to start the app
CMD ["npm", "start"]