18 lines
452 B
Docker
18 lines
452 B
Docker
|
|
# Use Python slim image as base
|
||
|
|
FROM python:3.10-slim AS base
|
||
|
|
|
||
|
|
# Set up a directory for the application code
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# Copy only the requirements file initially for better caching
|
||
|
|
COPY requirements.txt .
|
||
|
|
|
||
|
|
# Install Workflow SDK and other dependencies
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
|
||
|
|
# Copy the rest of the application code
|
||
|
|
COPY . .
|
||
|
|
|
||
|
|
# No entrypoint as this is a preparation image
|
||
|
|
ENTRYPOINT ["python", "/app/flow_wrapper.py"]
|