Andrew Smith commited on
Commit
3570818
·
1 Parent(s): 718cd91

Comment serving static files

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -2
  2. image_search/main.py +2 -2
Dockerfile CHANGED
@@ -24,8 +24,6 @@ RUN --mount=type=secret,id=DB_URL,mode=0444,required=true \
24
  ENV VIRTUAL_ENV=/app/.venv \
25
  PATH="/app/.venv/bin:$PATH"
26
 
27
- RUN pip install torch
28
-
29
  COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
30
 
31
  WORKDIR /app
 
24
  ENV VIRTUAL_ENV=/app/.venv \
25
  PATH="/app/.venv/bin:$PATH"
26
 
 
 
27
  COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
28
 
29
  WORKDIR /app
image_search/main.py CHANGED
@@ -86,8 +86,8 @@ def search(query: Union[str, None] = None):
86
  return {"result": result, "query": query}
87
 
88
 
89
- app.mount("/images", StaticFiles(directory="images"), name="images")
90
- app.mount("/", StaticFiles(directory="static", html=True), name="static")
91
 
92
 
93
  @app.get("/")
 
86
  return {"result": result, "query": query}
87
 
88
 
89
+ # app.mount("/images", StaticFiles(directory="images"), name="images")
90
+ # app.mount("/", StaticFiles(directory="static", html=True), name="static")
91
 
92
 
93
  @app.get("/")