20 lines
537 B
Docker
20 lines
537 B
Docker
FROM python:3.11-slim-buster
|
|
|
|
# Update the system
|
|
RUN apt-get update -y
|
|
|
|
# Install LibreOffice, Firefox ESR and pip
|
|
RUN apt-get install -y libreoffice firefox-esr ffmpeg
|
|
|
|
# Set the working directory in the container to /app
|
|
WORKDIR /app
|
|
|
|
COPY ./requirements_version.txt /app/requirements_version.txt
|
|
RUN pip3 install --no-cache-dir -r requirements_version.txt
|
|
|
|
# cache tiktoken dict
|
|
RUN python3 -c 'import tiktoken; enc = tiktoken.get_encoding("cl100k_base")'
|
|
|
|
# Add the current directory contents into the container at /app
|
|
COPY . /app
|