Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Node.js image as the base image
|
2 |
+
FROM node:14
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /usr/src/app
|
6 |
+
|
7 |
+
# Copy package.json and package-lock.json to the working directory
|
8 |
+
COPY package*.json ./
|
9 |
+
|
10 |
+
# Install npm dependencies
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
# Install additional dependencies
|
14 |
+
RUN npm install firebase-admin node-fetch
|
15 |
+
|
16 |
+
# Copy the rest of the application code to the working directory
|
17 |
+
COPY . .
|
18 |
+
|
19 |
+
# Expose the port your app runs on
|
20 |
+
EXPOSE 7860
|
21 |
+
|
22 |
+
# Command to run the application
|
23 |
+
CMD ["node", "app.js"]
|