Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN --mount=type=secret,id=GITHUB,mode=0444,required=true \
|
| 6 |
+
GITHUB=$(cat /run/secrets/GITHUB) && \
|
| 7 |
+
git clone https://${GITHUB}@github.com/omrahm/proxy.git
|
| 8 |
+
|
| 9 |
+
RUN pip install -r requirements.txt
|
| 10 |
+
EXPOSE 7860
|
| 11 |
+
|
| 12 |
+
CMD [ "python3", "index.py" ]
|