fix(docker): update docker files

This commit is contained in:
Isaac
2023-03-11 15:03:11 +00:00
parent d23830d9a3
commit 4e21382e1e
2 changed files with 6 additions and 9 deletions

View File

@@ -10,15 +10,14 @@ COPY package.json pnpm-lock.yaml ./
COPY --link scripts scripts
# 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
ENV NODE_ENV=production \
HTTP_HOST=0.0.0.0 \
HTTP_PORT=80 \
SETTINGS_HOST=127.0.0.1 \
SETTINGS_PORT=8169
HTTP_PORT=80
WORKDIR /usr/bot
COPY --from=builder /build ./
EXPOSE ${HTTP_PORT}
ENTRYPOINT [ "/usr/bot/scripts/start.sh" ]
ENTRYPOINT [ "/usr/bot/scripts/start.sh" ]