23 lines
337 B
Docker
23 lines
337 B
Docker
FROM node:20 AS node_base
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Enable legacy peer deps
|
|
RUN npm config set legacy-peer-deps true
|
|
|
|
COPY . .
|
|
|
|
# Install the dependencies
|
|
RUN npm install
|
|
|
|
|
|
# Generate the Prisma client
|
|
RUN npm run prisma:generate
|
|
|
|
# Expose the port
|
|
EXPOSE 3000
|
|
|
|
# Start the application
|
|
|
|
CMD ["npm", "run", "start:dev"] |