Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
FROM python:3.11
|
2 |
ARG DEPS
|
3 |
WORKDIR /code
|
|
|
4 |
RUN $DEPS
|
5 |
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
6 |
--mount=type=secret,id=APP_URL,mode=0444,required=true \
|
7 |
curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
|
8 |
COPY . .
|
9 |
-
|
|
|
|
1 |
FROM python:3.11
|
2 |
ARG DEPS
|
3 |
WORKDIR /code
|
4 |
+
RUN chmod 777 /code
|
5 |
RUN $DEPS
|
6 |
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
7 |
--mount=type=secret,id=APP_URL,mode=0444,required=true \
|
8 |
curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL)
|
9 |
COPY . .
|
10 |
+
EXPOSE 7860
|
11 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] #, "--reload"]
|