File size: 1,627 Bytes
424067e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ce09b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424067e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23550da
 
 
424067e
 
 
 
 
 
 
 
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM nvidia/cuda:11.3.1-base-ubuntu20.04

ENV DEBIAN_FRONTEND=noninteractive \
	TZ=Europe/Paris

# Remove any third-party apt sources to avoid issues with expiring keys.
# Install some basic utilities
RUN rm -f /etc/apt/sources.list.d/*.list && \
    apt-get update && apt-get install -y --no-install-recommends \
    curl \
    ca-certificates \
    sudo \
    git \
    wget \
    procps \
    git-lfs \
    zip \
    unzip \
    htop \
    vim \
    nano \
    bzip2 \
    libx11-6 \
    build-essential \
    libsndfile-dev \
    ca-certificates \
    fonts-liberation \
    libappindicator3-1 \
    libasound2 \
    libatk-bridge2.0-0 \
    libatk1.0-0 \
    libcups2 \
    libgdk-pixbuf2.0-0 \
    libnspr4 \
    libnss3 \
    libx11-xcb1 \
    libxcomposite1 \
    libxdamage1 \
    libxrandr2 \
    libxss1 \
    libxtst6 \
    lsb-release \
    xdg-utils \
    software-properties-common \
 && rm -rf /var/lib/apt/lists/*

 RUN curl -sL https://deb.nodesource.com/setup_18.x  | bash - && \
    apt-get install -y nodejs && \
    npm install -g configurable-http-proxy

# Tạo thư mục làm việc trong container
WORKDIR /app
COPY package*.json ./
COPY package-lock*.json ./
COPY . .

# Cài đặt các phụ thuộc
RUN npm install
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
    apt-get install -y ./google-chrome-stable_current_amd64.deb && \
    rm google-chrome-stable_current_amd64.deb
# Cấp quyền đọc/ghi cho thư mục
RUN chmod -R 755 /app

# Expose port mà ứng dụng sẽ chạy
EXPOSE 25645

# Lệnh để chạy ứng dụng
CMD ["npm", "start"]