Spaces:
Running
Running
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"] | |