Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -15,15 +15,11 @@ COPY . /app
|
|
| 15 |
RUN chmod -R 777 /app
|
| 16 |
WORKDIR /app
|
| 17 |
RUN chmod +x ./startup.sh
|
| 18 |
-
RUN ./startup.sh
|
| 19 |
USER user
|
| 20 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 25 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 15 |
RUN chmod -R 777 /app
|
| 16 |
WORKDIR /app
|
| 17 |
RUN chmod +x ./startup.sh
|
|
|
|
| 18 |
USER user
|
| 19 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
| 20 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 21 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 22 |
|
| 23 |
+
CMD ["sudo", "python", "serve.py"]
|
| 24 |
|
| 25 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|