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

Error when trying deploy using dockerfile #1168

Closed
Ninoambaraa opened this issue Dec 17, 2024 · 3 comments
Closed

Error when trying deploy using dockerfile #1168

Ninoambaraa opened this issue Dec 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Ninoambaraa
Copy link

I'm trying deploy using docker file

# Use stable Node.js LTS version
FROM node:22-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    python3 \
    git \
    ca-certificates \
    sqlite3 \
    libsqlite3-dev \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Install pnpm
RUN npm install -g [email protected]

# Set working directory
WORKDIR /app

# Copy package files
COPY package.json pnpm-lock.yaml ./

# Install dependencies
RUN pnpm install --frozen-lockfile

# Rebuild native modules
RUN pnpm rebuild better-sqlite3

# Copy application files
COPY . .

# Expose application port
EXPOSE 3000

# Start the application with debugging
CMD ["pnpm" , "start"]

and i get this error

⛔ ERRORS
   Unhandled error in startAgents: 
   {"code":"ERR_USE_AFTER_CLOSE"} 
@Ninoambaraa Ninoambaraa added the bug Something isn't working label Dec 17, 2024
@Sruthi2357
Copy link

Shall I work on this issue?

@vanshika-srivastava
Copy link
Contributor

Shall I work on this issue?

hey is the issue resolved? are you able to run dockerfile?

@Ninoambaraa
Copy link
Author

already solved thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants