init
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user