latest attempt of dockerization

This commit is contained in:
martin legrand
2025-05-31 19:44:58 +02:00
parent fc74d4361a
commit a3b0bb22aa
+5 -6
View File
@@ -2,8 +2,8 @@
FROM --platform=linux/amd64 python:3.11-slim FROM --platform=linux/amd64 python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome #RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome
#USER chrome
# Install essential packages and Chrome dependencies # Install essential packages and Chrome dependencies
RUN apt-get update -y && apt-get install -y \ RUN apt-get update -y && apt-get install -y \
@@ -101,9 +101,8 @@ COPY llm_router/ llm_router/
COPY config.ini . COPY config.ini .
EXPOSE 8000 EXPOSE 8000
# Switch to non-root user
USER chrome #RUN chown -R chrome:chrome /app
RUN chown -R chrome:chrome /app #RUN chown -R chrome:chrome /tmp
RUN chown -R chrome:chrome /tmp
# Run the application # Run the application
CMD ["python3", "api.py"] CMD ["python3", "api.py"]