luigi12345's picture
3d4d430fdc6c4817251cca13ca14d482b4155423564b910e7aa9b75b7cf593cc
df82a8c verified
raw
history blame
479 Bytes
FROM node:18-alpine
WORKDIR /app
RUN apk add --no-cache libc6-compat
RUN apk update
# Install pnpm
RUN npm install -g pnpm
# Copy package.json and pnpm-lock.yaml
COPY package.json pnpm-lock.yaml ./
# Install dependencies
RUN pnpm install
# Copy the rest of the application
COPY . .
# Generate Prisma Client
RUN pnpm prisma generate
# Build the application
RUN pnpm run build
# Expose the port the app runs on
EXPOSE 3000
# Start the application
CMD ["sh", "./start.sh"]