aqul commited on
Commit
3054134
·
verified ·
1 Parent(s): 1456fef

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:latest
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ wget \
5
+ gnupg \
6
+ ca-certificates \
7
+ apt-transport-https \
8
+ chromium \
9
+ chromium-driver \
10
+ xvfb \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ ENV CHROME_BIN=/usr/bin/chromium
14
+
15
+ WORKDIR /app
16
+
17
+ # Clone repository
18
+ RUN git clone https://github.com/zennn08/akinator-server-api .
19
+
20
+ RUN npm install
21
+ RUN npm run build
22
+ COPY . .
23
+
24
+ # Set environment variable for the app port
25
+ ENV PORT=7860
26
+
27
+ # Expose the port
28
+ EXPOSE 7860
29
+
30
+ CMD ["node", "dist/index.js"]