Files
operify/Dockerfile
2025-06-17 15:15:58 +05:30

27 lines
442 B
Docker

FROM node:18-alpine
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
RUN corepack enable pnpm && pnpm install --frozen-lockfile
# Copy all source files
COPY . .
# Disable telemetry
ENV NEXT_TELEMETRY_DISABLED=1
# Build the app
RUN pnpm build
# Expose port
EXPOSE 3000
# Start the application
CMD ["pnpm", "start"]