suna/frontend/Dockerfile

18 lines
306 B
Docker

FROM node:20-slim
WORKDIR /app
# Copy package files first for better layer caching
COPY package*.json ./
RUN npm install
# Copy the frontend code
COPY . .
# Build the application
RUN npm run build
EXPOSE 3000
# Default command is dev, but can be overridden in docker-compose
CMD ["npm", "run", "dev"]