-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.Linux.arm64
More file actions
32 lines (25 loc) · 897 Bytes
/
Dockerfile.Linux.arm64
File metadata and controls
32 lines (25 loc) · 897 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
FROM python:3.12-slim-bookworm
WORKDIR /app
# System dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git build-essential gcc g++ && \
rm -rf /var/lib/apt/lists/*
# Install oceanstream from git
ARG OCEANSTREAM_BRANCH=main
ARG OCEANSTREAM_REPO=https://github.com/OceanStreamIO/oceanstream-cli.git
ARG OCEANSTREAM_CACHEBUST=1
RUN git clone --depth 1 -b ${OCEANSTREAM_BRANCH} ${OCEANSTREAM_REPO} /tmp/oceanstream && \
pip install --no-cache-dir "/tmp/oceanstream[geotrack,adcp]" && \
rm -rf /tmp/oceanstream
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Application code
COPY azure_handler/ azure_handler/
COPY ingest/ ingest/
COPY process/ process/
COPY exports/ exports/
COPY simulate/ simulate/
COPY config.py main.py standalone.py ./
ENV PYTHONUNBUFFERED=1
CMD ["python", "-u", "main.py"]