purrbits commited on
Commit
5d792e8
·
verified ·
1 Parent(s): 56e3aeb

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && \
6
+ apt-get install -y git && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # Clone langsung repo
10
+ RUN git clone https://github.com/synshin9/Restfull-Api.git .
11
+
12
+ RUN npm install
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["npm", "start"]