-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
39 lines (30 loc) · 1.29 KB
/
Copy pathDockerfile.dev
File metadata and controls
39 lines (30 loc) · 1.29 KB
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
# Swap 3.12 to 3.13, 3.14, etc. as needed by individual team members
FROM python:3.12-bookworm
ENV DEBIAN_FRONTEND=noninteractive
# Reliable mirrors + dependencies
RUN echo "deb http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list && \
echo "deb http://security.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list && \
echo "deb http://deb.debian.org/debian bookworm-updates main" >> /etc/apt/sources.list && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
apt-get update && \
apt-get install -y --no-install-recommends --fix-missing \
curl gnupg build-essential libssl-dev libffi-dev python3-dev ca-certificates && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
npm install -g pnpm turbo && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Upgrade Python packaging tools
RUN pip install --upgrade pip setuptools wheel
# Project directory
WORKDIR /app
# Copy everything in
COPY . .
# Node dependencies
RUN pnpm install
# Python dependencies
RUN pip install --no-cache-dir -r apps/backend/requirements.txt
# Expose frontend and backend ports
EXPOSE 5173 8000
# Monorepo dev script
CMD ["pnpm", "turbo", "run", "dev", "--parallel", "--cache-dir=.turbo"]