-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.base
More file actions
34 lines (27 loc) · 803 Bytes
/
Copy pathDockerfile.base
File metadata and controls
34 lines (27 loc) · 803 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
31
32
33
34
# Base the image on Python 3.8 Alpine
FROM python:3.8-alpine
# Install necessary packages for Nuclio
RUN apk add --no-cache \
bash \
build-base \
libffi-dev \
openssl-dev \
py3-pip \
curl \
libstdc++ \
linux-headers \
musl-dev \
gcc \
libexecinfo-dev
# Install the Nuclio Python SDK
RUN pip install nuclio-sdk
# Install any other Python dependencies for your function
# Example: RUN pip install numpy pandas
# Set the working directory
WORKDIR /function
# Copy your function code into the image
COPY . .
# Set the handler for Nuclio to find the function entry point
ENV NUCLIO_HANDLER my_function_with_config:my_entry_point
# Command to run the function using Nuclio's handler
CMD ["python", "-m", "nuclio"]