fix: Dockerfile (#394)

* Update Dockerfile

* Fix chmod command

Fix the path so it can stay in the `builder` step, so it doesn't add a layer to the image.

---------

Co-authored-by: Isaac <git@eartharoid.me>
This commit is contained in:
Uzurka 2023-03-12 14:53:35 +01:00 committed by GitHub
parent 4a8aee5ce8
commit d09598dd3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,9 @@ RUN apk add --no-cache make gcc g++ python3
RUN npm install -g pnpm
COPY package.json pnpm-lock.yaml ./
COPY --link scripts scripts
RUN chmod +x ./scripts/start.sh
# install dependencies, CI=true to skip pre/postinstall scripts
RUN CI=true pnpm install --prod --frozen-lockfile
RUN chmod +x /usr/bot/scripts/start.sh
COPY --link . .
FROM node:18-alpine AS runner