17 lines
No EOL
397 B
Text
17 lines
No EOL
397 B
Text
# syntax=docker/dockerfile:1
|
|
|
|
# Use the official Node.js image as the base image
|
|
ARG NODE_VERSION=22.13.1
|
|
FROM node:${NODE_VERSION}-slim AS base
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
RUN apt-get update -y && apt-get install -y openssl && npm install && npx prisma generate
|
|
|
|
# Expose the application port
|
|
EXPOSE 3100
|
|
|
|
# Define the command to run the application
|
|
CMD ["node", "app.js"] |