mfoud444 commited on
Commit
ddd5ca0
·
verified ·
1 Parent(s): d6a4110

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -5,9 +5,11 @@ WORKDIR /app
5
  # Install unzip utility
6
  RUN apk add --no-cache unzip
7
 
8
- # Copy and unzip the bot zip file
9
  COPY emperor-bot.zip ./
10
- RUN unzip emperor-bot.zip -d ./ && rm emperor-bot.zip
 
 
11
 
12
  # Copy package.json and package-lock.json
13
  COPY package*.json ./
 
5
  # Install unzip utility
6
  RUN apk add --no-cache unzip
7
 
8
+ # Copy and unzip the bot zip file to /app directly (flatten contents)
9
  COPY emperor-bot.zip ./
10
+ RUN unzip -q emperor-bot.zip -d temp \
11
+ && cp -r temp/*/* . \
12
+ && rm -rf temp emperor-bot.zip
13
 
14
  # Copy package.json and package-lock.json
15
  COPY package*.json ./