File size: 817 Bytes
8830fa5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM node:22-bookworm

RUN apt-get update && apt-get install -y --no-install-recommends \
        python3 python3-pip python3-venv \
        curl ca-certificates procps lsof bash \
    && rm -rf /var/lib/apt/lists/*

RUN python3 -m venv /opt/venv && \
    /opt/venv/bin/pip install --no-cache-dir \
        pytest==8.4.1 \
        pytest-json-ctrf==0.3.5 \
        playwright==1.48.0 \
        requests==2.32.3
RUN /opt/venv/bin/playwright install --with-deps chromium

ENV PATH="/opt/venv/bin:${PATH}"

COPY reference.png /app/reference.png

COPY app/. /app/

RUN /opt/venv/bin/pip install --no-cache-dir -r /app/backend/requirements.txt
RUN cd /app/frontend && npm install --silent

COPY pristine/AddExpense.jsx /opt/golden-reference/AddExpense.jsx
COPY pristine/App.jsx /opt/golden-reference/App.jsx

WORKDIR /app