Skip to content
Merged
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
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
**/*.egg-info
**/__pycache__
**/cdk.out
**/.venv
**/*.egg-info

packages/stac-index/tests

**/.venv
**/.env
**/.idea
**/.vscode
Expand Down
15 changes: 6 additions & 9 deletions docker/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ ENV UV_LINK_MODE=copy \
### End build prep -- this is where your app Dockerfile should start.

WORKDIR /src
COPY ./ /src
COPY pyproject.toml .
COPY uv.lock .

# File is required to successfully parse root package.toml, even though not installed.
COPY packages/stac-index/pyproject.toml ./packages/stac-index/

RUN uv sync \
--directory=/src \
--locked \
--no-dev \
--no-install-project

# Install dependencies.
RUN uv sync \
--extra server \
--locked \
--no-dev \
--no-editable

--no-install-workspace

# ##########################################################################

Expand Down
13 changes: 10 additions & 3 deletions docker/indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,26 @@ ENV UV_LINK_MODE=copy \
UV_PROJECT_ENVIRONMENT=/opt/app

### End build prep -- this is where your app Dockerfile should start.
COPY ./ /src

WORKDIR /src
COPY pyproject.toml .
COPY uv.lock .

# Files are required to successfully parse package.toml, even though the project is not installed at this stage.
COPY packages/stac-index/pyproject.toml ./packages/stac-index/
COPY packages/stac-index/README.md ./packages/stac-index/

# Install dependencies first, then application code, as dependencies change less frequently.
RUN uv sync \
--package=stac-index \
--directory=/src \
--locked \
--no-dev \
--no-install-project

# Copy and install application code.
COPY packages/stac-index/* ./packages/stac-index/
RUN uv sync \
--package=stac-index \
--directory=/src \
--locked \
--no-dev \
--no-editable
Expand Down
15 changes: 6 additions & 9 deletions iac/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ ENV UV_LINK_MODE=copy \
### End build prep -- this is where your app Dockerfile should start.

WORKDIR /src
COPY ./ /src
COPY pyproject.toml .
COPY uv.lock .

# File is required to successfully parse root package.toml, even though not installed.
COPY packages/stac-index/pyproject.toml ./packages/stac-index/

RUN uv sync \
--directory=/src \
--locked \
--no-dev \
--no-install-project

# Install dependencies.
RUN uv sync \
--extra lambda \
--locked \
--no-dev \
--no-editable

--no-install-workspace

# ##########################################################################

Expand Down
13 changes: 10 additions & 3 deletions iac/indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,26 @@ ENV UV_LINK_MODE=copy \
UV_PROJECT_ENVIRONMENT=/opt/app

### End build prep -- this is where your app Dockerfile should start.
COPY ./ /src

WORKDIR /src
COPY pyproject.toml .
COPY uv.lock .

# Files are required to successfully parse package.toml, even though the project is not installed at this stage.
COPY packages/stac-index/pyproject.toml ./packages/stac-index/
COPY packages/stac-index/README.md ./packages/stac-index/

# Install dependencies first, then application code, as dependencies change less frequently.
RUN uv sync \
--package=stac-index \
--directory=/src \
--locked \
--no-dev \
--no-install-project

# Copy and install application code.
COPY packages/stac-index/* ./packages/stac-index/
RUN uv sync \
--package=stac-index \
--directory=/src \
--locked \
--no-dev \
--no-editable
Expand Down