diff --git a/StroyCord.Dockerfile b/StroyCord.Dockerfile index 0d87667..c26079f 100644 --- a/StroyCord.Dockerfile +++ b/StroyCord.Dockerfile @@ -1,5 +1,5 @@ ######### build stage -FROM node:lts-alpine as build +FROM node:lts-alpine AS build WORKDIR /build COPY package*.json ./ @@ -13,6 +13,7 @@ RUN npm run lint && npm run build ######### production stage FROM node:lts-alpine ENV NODE_ENV=production +ENV HUSKY=0 WORKDIR /app RUN apk update && apk add python3 make g++ ffmpeg @@ -20,6 +21,6 @@ RUN apk update && apk add python3 make g++ ffmpeg COPY --from=build /build/dist ./dist COPY --from=build /build/package*.json ./ -RUN npm ci --only=production --ignore-scripts +RUN npm ci --only=production CMD ["npm","run","start"] \ No newline at end of file diff --git a/package.json b/package.json index 39d023b..63ab020 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "start": "node ./dist/Bot.js", "build": "npm run lint && tsup ./src/Bot.ts --minify", "lint": "eslint --ignore-path .eslintignore --ext .js,.ts . --fix", - "prepare": "husky install", + "prepare": "husky install || true", "knip": "knip" }, "husky": {