File size: 510 Bytes
3054134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:latest

RUN apt-get update && apt-get install -y \
    wget \
    gnupg \
    ca-certificates \
    apt-transport-https \
    chromium \
    chromium-driver \
    xvfb \
    && rm -rf /var/lib/apt/lists/*

ENV CHROME_BIN=/usr/bin/chromium

WORKDIR /app

# Clone repository
RUN git clone https://github.com/zennn08/akinator-server-api .

RUN npm install
RUN npm run build
COPY . .

# Set environment variable for the app port
ENV PORT=7860

# Expose the port
EXPOSE 7860

CMD ["node", "dist/index.js"]