File size: 730 Bytes
50fbb94
d2887c6
9f6765f
 
c66d00f
 
0b457c4
 
9f6765f
f2cfe76
2bf5fec
c66d00f
8f44081
f303d2a
8f44081
2bf5fec
 
c66d00f
 
01cc2ab
c66d00f
b6d61de
f2cfe76
 
 
8a9006f
0ef8536
 
16bcc8a
52dbf94
c690377
52dbf94
c66d00f
 
8540a10
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
FROM ubuntu:24.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
    build-essential \
    libpq-dev \
    python3 python3-dev python3-pip python3-venv \
    gcc pkg-config \
    default-libmysqlclient-dev \
    nodejs npm \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /cata_system

RUN npm install -g pnpm

COPY requirements.txt .

RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

RUN pip install --upgrade pip && \
    pip install wheel && \
    pip install -r requirements.txt

COPY . .

RUN python3 manage.py tailwind install
RUN python3 manage.py tailwind build
RUN python3 manage.py collectstatic --noinput

EXPOSE 7860

CMD ["python3", "manage.py", "runserver", "0.0.0.0:7860"]