-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile.storybook
41 lines (31 loc) · 996 Bytes
/
Dockerfile.storybook
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM mcr.microsoft.com/playwright:v1.49.1
# Set environment variables
ENV CI=true \
TZ=UTC \
DISPLAY=:99
# Install additional dependencies
RUN apt-get update && \
apt-get install -y \
curl \
build-essential \
jq \
&& rm -rf /var/lib/apt/lists/*
# Install Rust and wasm-pack
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. $HOME/.cargo/env && \
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# Add cargo to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
# Install pnpm
RUN corepack enable pnpm
# Setup display with consistent resolution
RUN Xvfb :99 -screen 0 1280x1024x24 2>/dev/null &
WORKDIR /app
# Copy package files for installation
COPY package.json pnpm-lock.yaml ./
COPY packages/keychain/package.json ./packages/keychain/
COPY packages/ui-next/package.json ./packages/ui-next/
# Install dependencies
RUN pnpm install --frozen-lockfile
# Default command that can be overridden
CMD ["bash"]