Skip to content

Commit 054aa25

Browse files
committed
Simplifying app install
1 parent c23e3c9 commit 054aa25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ WORKDIR /opt
99
RUN yum install gcc -y
1010
COPY ecs_files_composer /opt/ecs_files_composer
1111
COPY poetry.lock pyproject.toml MANIFEST.in README.rst LICENSE /opt/
12-
RUN python -m pip install pip -U; python -m pip install poetry; poetry build; poetry export -o /opt/requirements.txt
12+
RUN python -m pip install pip -U
13+
RUN python -m pip install poetry
14+
RUN poetry build
1315

1416

1517
FROM $BASE_IMAGE
1618
COPY --from=builder /opt/dist/*.whl ${LAMBDA_TASK_ROOT:-/app/}/dist/
17-
COPY --from=builder /opt/requirements.txt ${LAMBDA_TASK_ROOT:-/app/}/requirements.txt
18-
RUN python -m pip install pip -U --no-cache-dir; pip install --no-cache-dir -r /app/requirements.txt
19+
RUN python -m pip install pip -U --no-cache-dir
1920
RUN python -m pip install --no-cache-dir /app/dist/*.whl
2021
WORKDIR /
2122
ENTRYPOINT ["python", "-m", "ecs_files_composer.cli"]

0 commit comments

Comments
 (0)