-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (44 loc) · 1.66 KB
/
Copy pathDockerfile
File metadata and controls
58 lines (44 loc) · 1.66 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Dockerfile with Miniconda and Python 3.12 environment
FROM ubuntu:24.04
USER root
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y \
wget \
curl \
git \
bzip2 \
libreoffice \
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js 24 via NodeSource
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
apt-get install -y nodejs && \
node -v && npm -v && \
npm install -g openclaw && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
bash /tmp/miniconda.sh -b -p /opt/miniconda && \
rm /tmp/miniconda.sh && \
/opt/miniconda/bin/conda init bash
ENV PATH="/opt/miniconda/bin:${PATH}"
# Create Python 3.12 environment
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
RUN conda create -n dataflow python=3.12 -y
SHELL ["/bin/bash", "-c"]
RUN source activate dataflow && pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
# Copy local dataflow code into container
COPY . /opt/dataflow
WORKDIR /opt/dataflow
RUN source activate dataflow && pip install --no-cache-dir -e .
WORKDIR /workspace
# Copy and setup entrypoint script
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# Put your skills here
# COPY skills /root/skills
# Set entrypoint for OpenClaw initialization
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]