vikarshana commited on
Commit
e55ed9c
·
verified ·
1 Parent(s): ddeafa9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -4,8 +4,10 @@ USER root
4
  # Create app directory and set permissions
5
  RUN mkdir -p /app && chown -R node:node /app
6
 
7
- # Install necessary dependencies
8
- RUN apt-get update && apt-get install -y \
 
 
9
  git \
10
  ffmpeg \
11
  imagemagick \
@@ -32,7 +34,8 @@ RUN chmod -R 777 /app
32
  # Install dependencies
33
  RUN npm install node-cache
34
 
35
- RUN npm install
 
36
  EXPOSE 7860
37
  ENV NODE_ENV=production
38
- CMD ["npm", "start"]
 
4
  # Create app directory and set permissions
5
  RUN mkdir -p /app && chown -R node:node /app
6
 
7
+ # Update sources.list to use archived repositories
8
+ RUN sed -i 's/http:\/\/deb.debian.org/http:\/\/archive.debian.org/g' /etc/apt/sources.list \
9
+ && echo "Acquire::Check-Valid-Until false;" >> /etc/apt/apt.conf.d/99ignore-valid-until \
10
+ && apt-get update && apt-get install -y \
11
  git \
12
  ffmpeg \
13
  imagemagick \
 
34
  # Install dependencies
35
  RUN npm install node-cache
36
 
37
+ RUN npm install || yarn install
38
+ RUN yarn install --network-concurrency 1
39
  EXPOSE 7860
40
  ENV NODE_ENV=production
41
+ CMD ["npm", "start"]