-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Base image with Python 3.11
# FROM python:3.11-slim
FROM public.ecr.aws/lambda/python:3.13
# Set working directory
# WORKDIR /app
# Copy requirements
# COPY requirements.txt .
COPY requirements.txt ${LAMBDA_TASK_ROOT}
# Install dependencies
# RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r ${LAMBDA_TASK_ROOT}/requirements.txt
# Copy application code
# COPY app.py .
COPY app.py ${LAMBDA_TASK_ROOT}
# COPY saved_models ./saved_models
# COPY data ./data
COPY data ${LAMBDA_TASK_ROOT}/data
# Expose port
# EXPOSE 8000
# Command to run server
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
# Set Lambda handler
CMD ["app.handler"]