snapshot: capture local workspace state (20251019-132103)
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -30,14 +30,15 @@ COPY requirements.txt /app/requirements.txt
|
||||
RUN python -m pip install --upgrade pip setuptools wheel && \
|
||||
python -m pip install -r /app/requirements.txt
|
||||
|
||||
# Copy project
|
||||
COPY . /app
|
||||
# Copy only app directory and libs/so (native .so libraries for Linux)
|
||||
COPY app /app/app
|
||||
COPY libs/so /app/libs/so
|
||||
|
||||
# Ensure Python and dynamic linker will find the native libs if mounted
|
||||
ENV PYTHONPATH="/app:/app/IPM_SO:/app/IPM_DLL"
|
||||
ENV LD_LIBRARY_PATH="/app/IPM_SO:/app/IPM_DLL"
|
||||
# Set environment variables to use libs/so for native libraries
|
||||
ENV PYTHONPATH="/app"
|
||||
ENV LD_LIBRARY_PATH="/app/libs/so"
|
||||
|
||||
EXPOSE 8001
|
||||
|
||||
# Default command runs uvicorn (use docker-compose override for development)
|
||||
# Default command runs uvicorn
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8001"]
|
||||
|
||||
Reference in New Issue
Block a user