Init
This commit is contained in:
36
Dockerfile
Normal file
36
Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
# ---- Build stage ----
|
||||
FROM python:3.13-slim AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
libjpeg-dev \
|
||||
libfreetype6-dev \
|
||||
liblcms2-dev \
|
||||
libopenjp2-7-dev \
|
||||
libtiff5-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY src/requirements.txt .
|
||||
RUN pip install --prefix=/install --no-cache-dir -r requirements.txt
|
||||
|
||||
# ---- Final stage ----
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
|
||||
COPY ./src /app/src/
|
||||
|
||||
COPY dockerstart.sh /app/src/dockerstart.sh
|
||||
|
||||
RUN chmod +x /app/src/dockerstart.sh
|
||||
|
||||
WORKDIR /app/src
|
||||
|
||||
EXPOSE 8765
|
||||
|
||||
CMD ["/app/src/dockerstart.sh"]
|
||||
Reference in New Issue
Block a user