-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (17 loc) · 893 Bytes
/
Dockerfile
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
# Start with a base Python image
FROM python:3.9-slim-buster
# Set the working directory to /app
WORKDIR /app
# Copy the requirements.txt file into the container
COPY ././outputs/nike_itdepartment_collector_salesforce/components/nike_itdepartment_collector_salesforce/requirements.txt .
# Install the required Python packages
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install uvicorn
# Copy the Python code into the container
COPY ././outputs/nike_itdepartment_collector_salesforce/components/nike_itdepartment_collector_salesforce .
# replace it with installable yeager python library
COPY ./core ./core
# Expose port 80 for the FastAPI application
EXPOSE 5000
# Start the FastAPI application when the container is run
CMD ["uvicorn", "nike_itdepartment_collector_salesforce:nike_itdepartment_collector_salesforce_app", "--host", "0.0.0.0", "--port", "5000"]