Update Dockerfile
Browse files- 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
|
|
|
|
|
|
|
| 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 ./
|