diff --git a/Dockerfile b/Dockerfile index 2baebe5..92b5810 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,14 @@ -FROM node:18-alpine +FROM node:18 WORKDIR /app -# Install system dependencies -RUN apk add --no-cache libc6-compat - # Copy package files COPY package.json pnpm-lock.yaml* ./ -# Install pnpm and dependencies +# Install dependencies RUN corepack enable pnpm && pnpm install --frozen-lockfile -# Copy all source files +# Copy source code COPY . . # Disable telemetry @@ -23,5 +20,5 @@ RUN pnpm build # Expose port EXPOSE 3000 -# Start the application +# Start the application CMD ["pnpm", "start"] \ No newline at end of file