Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -4,8 +4,13 @@ FROM mcr.microsoft.com/playwright:focal
|
|
4 |
# Set the working directory in the container to /app
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Install
|
8 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Copy the Python script into the container at /app
|
11 |
COPY generator.py /app/
|
@@ -13,5 +18,5 @@ COPY generator.py /app/
|
|
13 |
# Make ports 80 available to the world outside this container
|
14 |
EXPOSE 8080
|
15 |
|
16 |
-
# Run your_script.py when the container launches
|
17 |
-
CMD ["
|
|
|
4 |
# Set the working directory in the container to /app
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Install python3 and pip3
|
8 |
+
RUN apt-get update && apt-get install -y python3-pip
|
9 |
+
RUN python3 -m pip install --upgrade pip setuptools wheel
|
10 |
+
|
11 |
+
# Install playwright python package and the browsers
|
12 |
+
RUN pip3 install playwright
|
13 |
+
RUN playwright install
|
14 |
|
15 |
# Copy the Python script into the container at /app
|
16 |
COPY generator.py /app/
|
|
|
18 |
# Make ports 80 available to the world outside this container
|
19 |
EXPOSE 8080
|
20 |
|
21 |
+
# Run your_script.py when the container launches
|
22 |
+
CMD ["python3", "generator.py"]
|