Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -14,8 +14,6 @@ RUN useradd -m -u 1000 user
|
|
| 14 |
#ENV HOME=/home/user \
|
| 15 |
# PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
| 16 |
|
| 17 |
-
RUN chmod +x ./entrypoint.sh
|
| 18 |
-
|
| 19 |
ENV PATH=/opt/conda/bin:$PATH
|
| 20 |
|
| 21 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
@@ -63,4 +61,9 @@ RUN --mount=type=secret,id=BULK_ENERGY_TOKEN,mode=0444,required=true \
|
|
| 63 |
|
| 64 |
|
| 65 |
COPY --chown=user . /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 14 |
#ENV HOME=/home/user \
|
| 15 |
# PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
| 16 |
|
|
|
|
|
|
|
| 17 |
ENV PATH=/opt/conda/bin:$PATH
|
| 18 |
|
| 19 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
COPY --chown=user . /app
|
| 64 |
+
#RUN chmod 777 /app/*.py
|
| 65 |
+
#RUN chmod 777 /app/attempts.txt
|
| 66 |
+
#RUN chmod 777 /app/failed_attempts.txt
|
| 67 |
+
RUN chmod +x /app/entrypoint.sh
|
| 68 |
+
|
| 69 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|