aliexpress-worker / Dockerfile
MaxSainz2000's picture
Create Dockerfile
58da172 verified
raw
history blame contribute delete
452 Bytes
# Use the official Python image
FROM python:3.9
# Set the working directory
WORKDIR /code
# Install Python dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Install Playwright browsers (Chrome/Firefox)
RUN playwright install --with-deps chromium
# Copy the app code
COPY . .
# Run the app using Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]