Skip to content

Commit c003111

Browse files
[PRM-227] Replaced aws-cli pip3 install with APK install
1 parent 3f4db39 commit c003111

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

services/ehr-out-service/Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,9 @@ COPY --from=builder /usr/local/bin/node /usr/local/bin
2121
COPY --from=builder /app /app
2222

2323
RUN apk update && \
24-
apk add --no-cache bash tini && \
24+
apk add --no-cache bash tini aws-cli && \
2525
rm -rf /var/cache/apk/*
2626

27-
RUN apk add --no-cache \
28-
python3 \
29-
py3-pip \
30-
&& pip3 install --upgrade pip \
31-
&& pip3 install \
32-
awscli \
33-
&& rm -rf /var/cache/apk/*
3427

3528
COPY build/ /app/build
3629

services/ehr-repo/Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,15 @@ COPY --from=builder /app /app
2222

2323
# install python native requirements (again, as per builder)
2424
# add root CA from deductions team to trusted certificates
25+
26+
# TODO PRM-223 OR PRM-225 (can't remember and jira is broken) - Rip out Tini, hasn't been updated since 2020
27+
2528
RUN apk update && \
2629
apk -u list && \
2730
apk upgrade && \
28-
apk add --no-cache openssl ca-certificates bash tini && \
31+
apk add --no-cache openssl ca-certificates bash tini aws-cli && \
2932
rm -rf /var/cache/apk/*
3033

31-
RUN apk add --no-cache \
32-
python3 \
33-
py3-pip \
34-
&& pip3 install --upgrade pip \
35-
&& pip3 install \
36-
awscli \
37-
&& rm -rf /var/cache/apk/*
38-
3934
COPY build/ /app/build
4035

4136
COPY scripts/load-api-keys.sh /app/scripts/load-api-keys.sh

services/gp2gp-messenger/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:24-alpine3.23 AS builder
33
RUN apk update && \
44
apk -u list && \
55
apk upgrade && \
6-
rm -rf /var/cache/apk/* \
6+
rm -rf /var/cache/apk/*
77

88
COPY package*.json /app/
99

@@ -22,12 +22,7 @@ COPY --from=builder /usr/local/bin/node /usr/local/bin
2222
COPY --from=builder /app /app
2323

2424
RUN apk update && apk add openssl ca-certificates git && rm -rf /var/cache/apk/*
25-
RUN apk add --no-cache \
26-
python3 \
27-
py3-pip \
28-
&& pip3 install --upgrade pip \
29-
&& pip3 install \
30-
awscli \
25+
RUN apk add --no-cache aws-cli \
3126
&& rm -rf /var/cache/apk/*
3227

3328

0 commit comments

Comments
 (0)