ComicFileToCleanedZip / Dockerfile
SohomToom's picture
Update Dockerfile
94c9dff verified
raw
history blame contribute delete
470 Bytes
# Use official Python base image
FROM python:3.10
# Install unrar and other dependencies
RUN apt-get update && \
apt-get install -y unrar-free && \
apt-get clean
# Set environment variable for rarfile
ENV UNRAR_TOOL=unrar
# Set working directory
WORKDIR /code
# Copy requirements and install
COPY requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . /code
# Run the app
CMD ["python", "app.py"]