Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

fix: case mismatch between as and from in Dockerfiles #780

Merged
merged 3 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 2 deletions packages/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG ARCH
ARG LOCAL_VERSION
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} as sdk
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} AS sdk

FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} as builder
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} AS builder
ARG SDK_DEST=src/leapfrogai_sdk/build
USER root
WORKDIR /leapfrogai
Expand Down
4 changes: 2 additions & 2 deletions packages/llama-cpp-python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG ARCH
ARG LOCAL_VERSION
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} as sdk
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} AS sdk

# hardened and slim python w/ developer tools image
FROM --platform=$BUILDPLATFORM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev as builder
FROM --platform=$BUILDPLATFORM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev AS builder
ARG SDK_DEST=src/leapfrogai_sdk/build
USER root
WORKDIR /leapfrogai
Expand Down
4 changes: 2 additions & 2 deletions packages/repeater/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG ARCH
ARG LOCAL_VERSION
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} as sdk
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} AS sdk

# hardened and slim python w/ developer tools image
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} as builder
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} AS builder
ARG SDK_DEST=src/leapfrogai_sdk/build
USER root
WORKDIR /leapfrogai
Expand Down
4 changes: 2 additions & 2 deletions packages/text-embeddings/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG ARCH
ARG LOCAL_VERSION
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} as sdk
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} AS sdk

# hardened and slim python w/ developer tools image
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} as builder
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} AS builder
ARG SDK_DEST=src/leapfrogai_sdk/build
USER root
WORKDIR /leapfrogai
Expand Down
6 changes: 3 additions & 3 deletions packages/vllm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG LOCAL_VERSION
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} as sdk
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} AS sdk

FROM nvidia/cuda:12.2.2-devel-ubuntu22.04 as builder
FROM nvidia/cuda:12.2.2-devel-ubuntu22.04 AS builder
ARG SDK_DEST=src/leapfrogai_sdk/build

# Set the config file defaults
Expand Down Expand Up @@ -129,4 +129,4 @@ RUN python3 packages/vllm/src/model_download.py

EXPOSE 50051:50051

ENTRYPOINT ["python", "-m", "leapfrogai_sdk.cli", "--app-dir=packages/vllm/src/", "main:Model"]
ENTRYPOINT ["python", "-m", "leapfrogai_sdk.cli", "--app-dir=packages/vllm/src/", "main:Model"]
4 changes: 2 additions & 2 deletions packages/whisper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG ARCH
ARG LOCAL_VERSION
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} as sdk
FROM ghcr.io/defenseunicorns/leapfrogai/leapfrogai-sdk:${LOCAL_VERSION} AS sdk

FROM --platform=$BUILDPLATFORM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev as builder
FROM --platform=$BUILDPLATFORM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev AS builder
USER root
ARG SDK_DEST=src/leapfrogai_sdk/build

Expand Down
4 changes: 2 additions & 2 deletions src/leapfrogai_sdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=amd64
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} as builder
FROM ghcr.io/defenseunicorns/leapfrogai/python:3.11-dev-${ARCH} AS builder

ARG SDK_DEST=src/leapfrogai_sdk/build
USER root
Expand All @@ -10,4 +10,4 @@ COPY ./src/leapfrogai_sdk /leapfrogai/src/leapfrogai_sdk
RUN python -m venv .venv
ENV PATH="/leapfrogai/.venv/bin:$PATH"
RUN rm -f ${SDK_DEST}/*.whl
RUN python -m pip wheel src/leapfrogai_sdk -w ${SDK_DEST}
RUN python -m pip wheel src/leapfrogai_sdk -w ${SDK_DEST}