File size: 1,138 Bytes
91d9d20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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 \
    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

# 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"]