-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (30 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
42 lines (30 loc) · 924 Bytes
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
42
FROM node:24-bookworm AS builder
RUN npx -y playwright install --with-deps
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
# Add Poetry to PATH
ENV PATH="/root/.local/bin:$PATH"
# Install pnpm
RUN npm install -g pnpm
# Set working directory
WORKDIR /app
# Copy pnpm workspace configuration
COPY pnpm-workspace.yaml ./
# Copy package.json files for dependency installation
COPY package.json ./
COPY packages/feldspar/package.json ./packages/feldspar/
COPY packages/data-collector/package.json ./packages/data-collector/
# Copy pnpm lock file for reliable installs
COPY pnpm-lock.yaml* ./
# Copy postcss config
COPY postcss.config.js ./
# Install all dependencies, including devDependencies
RUN pnpm install
# Expose port
EXPOSE 3000