Skip to content
Snippets Groups Projects
Unverified Commit 9d6d06ce authored by Eugene Davis's avatar Eugene Davis
Browse files

Minor fixes

parent 81f667b2
No related branches found
No related tags found
No related merge requests found
FROM python:3.8.12-slim-bullseye as builder
ARG with_models=false
ARG models=
WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive
......@@ -24,11 +21,14 @@ RUN ./venv/bin/pip install . \
FROM python:3.8.12-slim-bullseye
ARG with_models=false
ARG models=
RUN addgroup --system --gid 1032 libretranslate && adduser --system --uid 1032 libretranslate
RUN apt-get update -qq && apt-get -qqq install --no-install-recommends -y libicu67 && apt-get clean && rm -rf /var/lib/apt
USER libretranslate
COPY --from=builder --chown=libretranslate:libretranslate /app /app
COPY --from=builder --chown=1032:1032 /app /app
WORKDIR /app
RUN if [ "$with_models" = "true" ]; then \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment