-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 807 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (21 loc) · 807 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
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
LABEL maintainer="ASF Mission Data Team"
WORKDIR /app
# Keep Python output visible in ECS logs and avoid .pyc clutter
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_PROJECT_ENVIRONMENT=/usr/local \
UV_NO_DEV=1
# Minimal OS setup plus non-root user
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates graphviz \
&& rm -rf /var/lib/apt/lists/* \
&& groupadd --system --gid 10001 app \
&& useradd --system --uid 10001 --gid app --create-home --home-dir /home/app app
COPY pyproject.toml uv.lock README.md ./
COPY asf_mission_data ./asf_mission_data
COPY pipelines.yaml ./pipelines.yaml
RUN uv sync --locked
USER app
ENTRYPOINT ["python", "-m", "asf_mission_data.run"]
CMD ["--help"]