-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.Linux.arm
More file actions
46 lines (35 loc) · 1.54 KB
/
Copy pathDockerfile.Linux.arm
File metadata and controls
46 lines (35 loc) · 1.54 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
# =============================================================================
# ARM32 build — lightweight edge devices (non-Jetson)
# For Jetson Orin (ARM64 + GPU), use Dockerfile.Linux.arm64 instead.
# =============================================================================
FROM python:3.11-slim-arm32v7
ARG ECHOPYPE_REPO=https://github.com/OceanStreamIO/echopype.git
ARG ECHOPYPE_REF=oceanstream-integration
ARG OCEANSTREAM_REPO=https://github.com/OceanStreamIO/oceanstream-cli.git
ARG OCEANSTREAM_REF=feat/batch_processing
WORKDIR /app
RUN mkdir -p /app/tmpdata /app/procdata /data/raw /data/processed /data/config /data/blobroot
RUN apt-get update \
&& apt-get install -y --no-install-recommends git build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Clone and install echopype
RUN git clone --branch $ECHOPYPE_REF --depth 1 $ECHOPYPE_REPO /tmp/echopype \
&& SETUPTOOLS_SCM_PRETEND_VERSION=0.9.0 pip install --no-cache-dir /tmp/echopype \
&& rm -rf /tmp/echopype
# Clone and install oceanstream (core only)
RUN pip install --no-cache-dir poetry-core \
&& git clone --branch $OCEANSTREAM_REF --depth 1 $OCEANSTREAM_REPO /tmp/oceanstream \
&& pip install --no-cache-dir --no-deps /tmp/oceanstream \
&& rm -rf /tmp/oceanstream
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONUNBUFFERED=1
ENV MPLBACKEND=Agg
COPY main.py .
COPY config.py .
COPY azure_handler ./azure_handler
COPY exports ./exports
COPY process ./process
COPY ingest ./ingest
CMD ["python", "-u", "main.py"]