Create Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM mcr.microsoft.com/playwright/python:v1.46.0-jammy
|
2 |
+
WORKDIR /code
|
3 |
+
RUN chmod 777 /code
|
4 |
+
RUN pip install httpx flask playwright > /dev/null 2>&1
|
5 |
+
RUN mkdir -p /.cache && chmod 777 /.cache
|
6 |
+
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
7 |
+
--mount=type=secret,id=APP_URL,mode=0444,required=true \
|
8 |
+
curl -v -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
|
9 |
+
COPY . .
|
10 |
+
CMD ["python", "/code/app.py"]
|