Skip to content

Commit

Permalink
Merge pull request #240 from ministryofjustice/security-upgrade
Browse files Browse the repository at this point in the history
upgrade python image version in dockerfiles for improved security
  • Loading branch information
nickdavis2001 authored Jul 25, 2024
2 parents a119379 + e7b06cf commit 620ed74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lambda_functions/v1/Dockerfile-Dynamo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Define function directory
ARG FUNCTION_DIR="/function"

FROM python:3.10.13-alpine3.18 AS python-alpine
FROM python:3.12-alpine3.19 AS python-alpine
RUN apk add --no-cache \
libstdc++ \
elfutils-dev
Expand Down Expand Up @@ -44,4 +44,4 @@ WORKDIR ${FUNCTION_DIR}
COPY --from=build-image ${FUNCTION_DIR} ${FUNCTION_DIR}

ENTRYPOINT [ "/usr/local/bin/python", "-m", "awslambdaric" ]
CMD [ "app.dynamodb_stream.lambda_handler" ]
CMD [ "app.dynamodb_stream.lambda_handler" ]
4 changes: 2 additions & 2 deletions lambda_functions/v1/Dockerfile-Function
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Define function directory
ARG FUNCTION_DIR="/function"

FROM python:3.10.13-alpine3.18 AS python-alpine
FROM python:3.12-alpine3.19 AS python-alpine
RUN apk add --no-cache \
libstdc++ \
elfutils-dev
Expand Down Expand Up @@ -48,4 +48,4 @@ WORKDIR ${FUNCTION_DIR}
COPY --from=build-image ${FUNCTION_DIR} ${FUNCTION_DIR}

ENTRYPOINT [ "/usr/local/bin/python", "-m", "awslambdaric" ]
CMD [ "app.lpa_codes.lambda_handler" ]
CMD [ "app.lpa_codes.lambda_handler" ]
4 changes: 2 additions & 2 deletions lambda_functions/v1/Dockerfile-Local-Helper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-slim
FROM python:3.12-slim
WORKDIR /var/www/lambda_functions/v1

# Install Python Dependencies
Expand All @@ -9,4 +9,4 @@ RUN pip install -r ./requirements/mock-requirements.txt

EXPOSE 4343

ENTRYPOINT ["python", "/var/www/lambda_functions/v1/functions/lpa_codes/app/lpa_codes_mock.py"]
ENTRYPOINT ["python", "/var/www/lambda_functions/v1/functions/lpa_codes/app/lpa_codes_mock.py"]
2 changes: 1 addition & 1 deletion lambda_functions/v1/Dockerfile-Tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.12-slim
ARG FUNCTION_DIR="/var/www/lambda_functions/v1"

# Create function directory
Expand Down

0 comments on commit 620ed74

Please sign in to comment.