File size: 645 Bytes
e82ad34 31ceefd e82ad34 31ceefd eda32b6 7050eac e82ad34 7050eac e82ad34 d31d443 31ceefd eda32b6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use Microsoft's Playwright-ready Docker image with Python
FROM mcr.microsoft.com/playwright:focal
# Set the working directory in the container to /app
WORKDIR /app
# Install python3 and pip3
RUN apt-get update && apt-get install -y python3-pip
RUN python3 -m pip install --upgrade pip setuptools wheel
# Install playwright python package and the browsers
RUN pip3 install playwright
RUN playwright install
# Copy the Python script into the container at /app
COPY generator.py /app/
# Make ports 80 available to the world outside this container
EXPOSE 8080
# Run your_script.py when the container launches
CMD ["python3", "generator.py"]
|