Skip to content

Commit a1351ce

Browse files
Updating Dockerfile.augmentation with required dependencies
1 parent cc7239c commit a1351ce

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Dockerfile.augmentation

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ LABEL org.opencontainers.image.licenses=Apache-2.0
77
ARG ENVIRONMENT=prod
88
ENV ENVIRONMENT=${ENVIRONMENT}
99

10-
# Initialize the augmentation_lambda directory
11-
RUN mkdir -p "${LAMBDA_TASK_ROOT}/src/augmentation_lambda"
12-
1310
# Install build tools for compiling C++ extensions
1411
RUN microdnf install -y gcc-c++ make && microdnf clean all
1512

16-
# Copy over just the pyproject.toml file and install the dependencies doing this
17-
# before copying the rest of the code allows for caching of the dependencies
13+
# Copy and install workspace packages in dependency order
14+
COPY ./packages/shared-models ${LAMBDA_TASK_ROOT}/shared-models
15+
RUN pip install --no-cache-dir "${LAMBDA_TASK_ROOT}/shared-models"
16+
17+
COPY ./packages/lambda-handler ${LAMBDA_TASK_ROOT}/lambda-handler
18+
RUN pip install --no-cache-dir "${LAMBDA_TASK_ROOT}/lambda-handler"
19+
20+
COPY ./packages/augmentation ${LAMBDA_TASK_ROOT}/augmentation
21+
RUN pip install --no-cache-dir "${LAMBDA_TASK_ROOT}/augmentation"
22+
1823
COPY ./packages/augmentation-lambda ${LAMBDA_TASK_ROOT}/augmentation-lambda
1924
RUN pip install --no-cache-dir "${LAMBDA_TASK_ROOT}/augmentation-lambda"
2025

0 commit comments

Comments
 (0)