mangkat / Dockerfile
ApaCu's picture
Update Dockerfile
f035f6e verified
raw
history blame contribute delete
496 Bytes
FROM python:3.9
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Create the writable data directory and set permissions
RUN mkdir -p /data
RUN chmod -R 777 /data
# Copy all the other files into the container
COPY . .
# Expose port 7860
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]