mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 11:46:48 +00:00
25 lines
608 B
Docker
25 lines
608 B
Docker
# Use the official Node.js 18.12.1-alpine base image
|
|
FROM node:18.12.1-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 application
|
|
RUN npm run build
|
|
|
|
# Expose the port that the application will run on
|
|
EXPOSE 9000
|
|
|
|
ENV HOST=0.0.0.0 PORT=9000 NODE_ENV=production
|
|
|
|
# Define the command to start the application
|
|
CMD [ "npm", "run", "start:prod" ]
|