replace zip with run script

This commit is contained in:
2025-09-07 15:08:12 -07:00
parent b0e430e19d
commit 5a53e1a782
4 changed files with 56 additions and 27 deletions

View File

@@ -1,12 +1,25 @@
FROM python:3.12-slim
# Install dependencies + locales
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
zip \
p7zip-full \
locales \
fonts-noto-cjk \
&& rm -rf /var/lib/apt/lists/*
# Generate Japanese UTF-8 locale
RUN sed -i '/ja_JP.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
# Set environment variables for locale
ENV LANG=ja_JP.UTF-8 \
LANGUAGE=ja_JP:ja \
LC_ALL=ja_JP.UTF-8 \
LC_CTYPE=ja_JP.UTF-8
RUN pip install --no-cache-dir --upgrade torch torchvision mokuro
# create a user to run the application
@@ -16,4 +29,6 @@ RUN useradd -m mokurouser \
WORKDIR /mokuro
USER mokurouser
COPY . .