Amal Nimmy Lal
commited on
Commit
·
bdea1d0
1
Parent(s):
b9dfbde
feat : Added demo video
Browse files- Dockerfile +2 -5
- backend/Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -17,8 +17,6 @@ COPY backend/requirements.txt /tmp/requirements.txt
|
|
| 17 |
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
| 18 |
COPY backend/ /home/user/app
|
| 19 |
COPY --from=frontend-build /build/dist /home/user/app/frontend_dist
|
| 20 |
-
COPY backend/entrypoint.sh /home/user/app/entrypoint.sh
|
| 21 |
-
RUN chmod +x /home/user/app/entrypoint.sh || true
|
| 22 |
RUN mkdir -p /data && chmod 700 /data
|
| 23 |
USER user
|
| 24 |
RUN pip install --no-cache-dir --upgrade pip
|
|
@@ -34,9 +32,8 @@ COPY --from=backend-build /home/user/app /home/user/app
|
|
| 34 |
COPY --from=backend-build /data /data
|
| 35 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 36 |
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
| 37 |
-
RUN chmod +x /home/user/app/entrypoint.sh || true
|
| 38 |
RUN mkdir -p /data && chmod 700 /data
|
| 39 |
USER user
|
| 40 |
-
EXPOSE
|
| 41 |
-
ENTRYPOINT
|
| 42 |
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
|
|
|
| 17 |
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
| 18 |
COPY backend/ /home/user/app
|
| 19 |
COPY --from=frontend-build /build/dist /home/user/app/frontend_dist
|
|
|
|
|
|
|
| 20 |
RUN mkdir -p /data && chmod 700 /data
|
| 21 |
USER user
|
| 22 |
RUN pip install --no-cache-dir --upgrade pip
|
|
|
|
| 32 |
COPY --from=backend-build /data /data
|
| 33 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 34 |
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
| 35 |
RUN mkdir -p /data && chmod 700 /data
|
| 36 |
USER user
|
| 37 |
+
EXPOSE 7860
|
| 38 |
+
## ENTRYPOINT removed: entrypoint.sh does not exist
|
| 39 |
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
backend/Dockerfile
CHANGED
|
@@ -22,7 +22,7 @@ COPY . .
|
|
| 22 |
RUN mkdir -p /app/data
|
| 23 |
|
| 24 |
# Expose port
|
| 25 |
-
EXPOSE
|
| 26 |
|
| 27 |
## ENTRYPOINT removed: /home/user/app/entrypoint.sh does not exist
|
| 28 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 22 |
RUN mkdir -p /app/data
|
| 23 |
|
| 24 |
# Expose port
|
| 25 |
+
EXPOSE 7860
|
| 26 |
|
| 27 |
## ENTRYPOINT removed: /home/user/app/entrypoint.sh does not exist
|
| 28 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|