-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (30 loc) · 915 Bytes
/
Dockerfile
File metadata and controls
32 lines (30 loc) · 915 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
#
#====================================================================
# Zimagi Action Docker image
#
#
# Base image
#
FROM python:3.12-slim
#
#====================================================================
# System Initialization
#
RUN apt-get update -y \
&& apt-get upgrade -y \
&& rm -rf /var/lib/apt/lists/*
#
# Action entrypoint
#
COPY ./lib /usr/local/lib/action
RUN ln -s /usr/local/lib/action/main.py /usr/local/bin/zimagi-action
ENTRYPOINT [ "zimagi-action" ]
#
#====================================================================
# Python Setup
#
COPY ./requirements.txt .
COPY ./requirements.client.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
RUN [ -f /usr/local/lib/action/requirements.txt ] || pip3 install --no-cache-dir -r requirements.client.txt
RUN [ ! -f /usr/local/lib/action/requirements.txt ] || pip3 install --no-cache-dir -r /usr/local/lib/action/requirements.txt