Spaces:
Running
Running
GPT-free-api
commited on
Commit
•
359d766
1
Parent(s):
f184d72
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Node.js runtime as the base image
|
2 |
+
FROM node:16
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /usr/src/app
|
6 |
+
|
7 |
+
# Install git to clone the repository
|
8 |
+
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
9 |
+
|
10 |
+
# Clone the repository
|
11 |
+
RUN git clone https://github.com/smartfoloo/lunarsync.git .
|
12 |
+
|
13 |
+
# Install dependencies
|
14 |
+
RUN npm install
|
15 |
+
|
16 |
+
# Expose the port the app runs on (if needed, replace 3000 with your app's port)
|
17 |
+
EXPOSE 3000
|
18 |
+
|
19 |
+
# Start the application
|
20 |
+
CMD ["npm", "start"]
|