replace zip with run script
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user