Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Container not starting #51

Open
2 tasks done
vladtsit opened this issue Apr 19, 2023 · 1 comment
Open
2 tasks done

[Bug]: Container not starting #51

vladtsit opened this issue Apr 19, 2023 · 1 comment

Comments

@vladtsit
Copy link

vladtsit commented Apr 19, 2023

Not a duplicate issue

  • I have searched the existing issues and confirmed this issue is not a duplicate.

Verify ChatGPT service is operational

Bot version

v2.5.0

API type

official

Environment details

20_04-lts-gen2, latest docker, docker run -d -v ./bot_config:/app/config raineggplant/chatgpt-telegram-bot:latest

Describe the Bug

getting an error:

[email protected] start /app
node --experimental-loader=extensionless dist/index.js
(node:18) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
 >ELIFECYCLE  Command failed.

To Reproduce

just start docker again

Logs

no additional logs generated

Additional context

No response

@Vadko
Copy link
Collaborator

Vadko commented Apr 30, 2023

# Builder stage
FROM node:lts-alpine AS builder

RUN npm install -g pnpm

WORKDIR /app

COPY config /app/config
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --ignore-scripts

COPY . .
RUN pnpm build


# Runner stage
FROM node:lts-alpine

RUN npm install -g pnpm

WORKDIR /app

COPY config /app/config
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --ignore-scripts --prod --no-optional

COPY --from=builder /app/dist ./dist

CMD pnpm start

can you please try using following dockerfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants