refactor: Clean up Dockerfile by removing service code and initialization commands

- Removed the service code copy and database initialization commands from the Dockerfile to streamline the build process.
- Maintained environment variable settings and API port exposure for continued functionality.
This commit is contained in:
daohp 2025-12-03 14:27:42 +07:00
parent 7d9d31b6f3
commit 74d615234e

View file

@ -108,13 +108,6 @@ ENV TIKTOKEN_CACHE_DIR=/app/data/tiktoken
ENV WORKING_DIR=/app/data/rag_storage
ENV INPUT_DIR=/app/data/inputs
# Copy service code
COPY service/ ./service/
RUN python -m service.init_db
RUN python -m service.main
# Expose API port
EXPOSE 9621