Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/fetch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \

FROM python:3.12-slim-bookworm

RUN if ! id -u app >/dev/null 2>&1; then useradd -rUM -s /usr/sbin/nologin app; fi

WORKDIR /app

COPY --from=uv /root/.local /root/.local
Expand All @@ -32,6 +34,8 @@ RUN if ! id -u app >/dev/null 2>&1; then \
fi
COPY --from=uv --chown=app:app /app/.venv /app/.venv

USER app

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"

Expand Down
2 changes: 2 additions & 0 deletions src/filesystem/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ ENV NODE_ENV=production

RUN npm ci --ignore-scripts --omit-dev

USER node

ENTRYPOINT ["node", "/app/dist/index.js"]
4 changes: 4 additions & 0 deletions src/git/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ FROM python:3.12-slim-bookworm
RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* \
&& git lfs install --system

RUN if ! id -u app >/dev/null 2>&1; then useradd -rUM -s /usr/sbin/nologin app; fi

WORKDIR /app

COPY --from=uv /root/.local /root/.local
Expand All @@ -35,6 +37,8 @@ RUN if ! id -u app >/dev/null 2>&1; then \
fi
COPY --from=uv --chown=app:app /app/.venv /app/.venv

USER app

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"

Expand Down
2 changes: 2 additions & 0 deletions src/memory/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ WORKDIR /app

RUN npm ci --ignore-scripts --omit-dev

USER node

ENTRYPOINT ["node", "dist/index.js"]
4 changes: 4 additions & 0 deletions src/time/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \

FROM python:3.12-slim-bookworm

RUN if ! id -u app >/dev/null 2>&1; then useradd -rUM -s /usr/sbin/nologin app; fi

WORKDIR /app

COPY --from=uv /root/.local /root/.local
Expand All @@ -32,6 +34,8 @@ RUN if ! id -u app >/dev/null 2>&1; then \
fi
COPY --from=uv --chown=app:app /app/.venv /app/.venv

USER app

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"

Expand Down