alisto-project / Dockerfile
Quivara's picture
Upload 3 files
1990456 verified
raw
history blame contribute delete
533 Bytes
FROM python:3.9
WORKDIR /code
# Copy the requirements from the subfolder to the docker container
# (Adjust path if your requirements.txt is in the root)
COPY requirements.txt /code/requirements.txt
# Install libraries
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all your project files
COPY . .
# Set permissions
RUN mkdir -p /tmp/cache
RUN chmod 777 /tmp/cache
ENV TRANSFORMERS_CACHE=/tmp/cache
RUN chmod +x /code/start.sh
# Run the updated start script
CMD ["/code/start.sh"]