File size: 535 Bytes
9e1b0bc
 
 
 
 
 
 
 
 
2e08de5
98e630e
 
 
cb1e6e6
2e08de5
cb1e6e6
 
 
a2af7ef
9e1b0bc
 
4dbeab9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# syntax=docker/dockerfile:1

FROM python:3.10-bullseye

EXPOSE 7860
WORKDIR /app

COPY . .

# Set environment variables for safe caching
ENV MPLCONFIGDIR=/tmp/.matplotlib
ENV NUMBA_CACHE_DIR=/tmp/numba_cache

# Make necessary dirs and files writable
RUN mkdir -p /app/logs /app/TEMP && \
    chmod -R 777 /app/logs /app/TEMP /app/configs && \
    chmod 666 /app/configs/32k.json || true && \
    chmod 666 /app/trainset_preprocess_pipeline_print.py || true

RUN pip3 install -r requirements.txt

CMD ["python3", "-u", "EasierGUI.py"]