Spaces:
Running
Running
imseldrith
commited on
Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Node.js runtime as a parent image
|
2 |
+
FROM node:14
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy package.json and install dependencies
|
8 |
+
COPY package.json ./
|
9 |
+
RUN npm install
|
10 |
+
|
11 |
+
# Copy the rest of the application code
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
# Expose the port your app runs on
|
15 |
+
EXPOSE 7860
|
16 |
+
|
17 |
+
# Define the command to run your app
|
18 |
+
CMD ["npm", "start"]
|