app/Dockerfile.storybook.macos.dev
2025-07-11 13:21:49 +00:00

28 lines
551 B
Docker

# Dockerfile.storybook
FROM node:20-slim
WORKDIR /app
# Install basic dependencies
RUN apt-get update && apt-get install -y \
xdg-utils \
&& rm -rf /var/lib/apt/lists/*
# Copy package files
COPY package*.json ./
# Copy yarn.lock if it exists
COPY yarn.lock* ./
# Install dependencies
RUN yarn install
# Copy the rest of the application
COPY . .
# Expose port Storybook runs on
EXPOSE 6006
# Start Storybook in development mode with host configuration
ENV BROWSER=none
CMD ["yarn", "storybook", "dev", "-p", "6006", "--host", "0.0.0.0"]