mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 16:37:09 +00:00
23 lines
552 B
Docker
23 lines
552 B
Docker
# Use the official Node.js 14.x base image
|
|
FROM node:14-alpine
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json to the working directory
|
|
COPY package*.json ./
|
|
|
|
# Copy the application code to the working directory
|
|
COPY . .
|
|
RUN npm install typescript
|
|
# Install application dependencies
|
|
RUN npm install
|
|
# Build the NestJS application
|
|
RUN npm run build
|
|
|
|
# Expose the port that the application will run on
|
|
EXPOSE 3000
|
|
|
|
# Define the command to start the application
|
|
CMD [ "npm", "run", "start:prod" ]
|