Reaperxxxx commited on
Commit
ee05582
·
verified ·
1 Parent(s): 773a536

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -4,8 +4,8 @@ FROM node:18
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy package.json and yarn.lock first for caching layers
8
- COPY package.json yarn.lock ./
9
 
10
  # Install dependencies
11
  RUN yarn install
@@ -14,11 +14,11 @@ RUN yarn install
14
  COPY . .
15
 
16
  # Set permissions for the entire project and specific files/directories
17
- RUN chmod -R 777 /app \ # Set permissions for the /app directory
18
- && chmod -R 777 /app/session \ # Ensure the session directory is writable
19
- && chmod 666 /app/messages.json \ # Ensure messages.json is readable and writable
20
- && chmod -R 777 . \ # Set permissions for the current directory in context
21
- && chmod +x /app/start.sh # Ensure start.sh is executable
22
 
23
  # Expose the desired port (adjust as needed)
24
  EXPOSE 7860
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Copy package.json first for caching layers
8
+ COPY package.json ./
9
 
10
  # Install dependencies
11
  RUN yarn install
 
14
  COPY . .
15
 
16
  # Set permissions for the entire project and specific files/directories
17
+ RUN chmod -R 777 /app \
18
+ && chmod -R 777 /app/session \
19
+ && chmod 666 /app/messages.json \
20
+ && chmod -R 777 . \
21
+ && chmod +x /app/start.sh
22
 
23
  # Expose the desired port (adjust as needed)
24
  EXPOSE 7860