prolog_llm / Dockerfile
fraudTech's picture
fix build
fbbc3bc
Raw History Blame Contribute Delete
420 Bytes
FROM node:18-slim
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including devDependencies for build)
RUN npm install
# Copy application files
COPY . .
# Build the React app
RUN npm run build
# Remove devDependencies after build
RUN npm prune --production
# Expose port
EXPOSE 7860
# Set environment variable
ENV NODE_ENV=production
# Start server
CMD ["node", "server.js"]