Newer
Older
cortex-hub / ui / client-app / Dockerfile
# Use an official Node.js image to run the app
FROM node:18-alpine

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json (or yarn.lock)
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application source code
COPY . .

# Set environment variables for the application
ENV HOST=0.0.0.0
ENV PORT=8000

# Expose the application port
EXPOSE 8000

# Command to start the application
CMD ["npm", "start"]