TextModSimple / Dockerfile
DarwinAnim8or's picture
Update Dockerfile
8c30f0c
raw
history blame
No virus
521 Bytes
# Dockerfile
# Use the official Python image as the base image
FROM python:3.9
# Set the working directory
WORKDIR /app
# Create a writeable cache directory
RUN mkdir -p /app/cache && chmod 777 /app/cache
# Copy the requirements file to the working directory
COPY requirements.txt .
# Install the dependencies
RUN pip install -r requirements.txt
# Copy the rest of the files to the working directory
COPY . .
# Expose port 5000
EXPOSE 7860
# Run the start.sh script when the container starts
CMD ["sh", "start.sh"]