improve dockerfile
This commit is contained in:
parent
4e83c7c973
commit
e04908a431
1 changed files with 4 additions and 4 deletions
|
|
@ -18,9 +18,6 @@ WORKDIR /app
|
|||
COPY pyproject.toml uv.lock ./
|
||||
RUN uv sync
|
||||
|
||||
# Copy Python source
|
||||
COPY src/ ./src/
|
||||
|
||||
# Copy sample document and warmup script
|
||||
COPY documents/2506.08231v1.pdf ./
|
||||
COPY warm_up_docling.py ./
|
||||
|
|
@ -36,6 +33,9 @@ COPY frontend/ ./frontend/
|
|||
# Build frontend
|
||||
RUN cd frontend && npm run build
|
||||
|
||||
# Copy Python source
|
||||
COPY src/ ./src/
|
||||
|
||||
# Create startup script
|
||||
RUN echo '#!/bin/bash\n\
|
||||
set -e\n\
|
||||
|
|
@ -55,4 +55,4 @@ wait' > /app/start.sh && chmod +x /app/start.sh
|
|||
EXPOSE 3000
|
||||
|
||||
# Start both services
|
||||
CMD ["/app/start.sh"]
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue