Skip to content

Commit

Permalink
LPAL-1230 Remove apk upgrade / update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth committed Jul 25, 2023
1 parent 92b35ba commit 8c2c751
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 22 deletions.
2 changes: 0 additions & 2 deletions local-ssl/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ FROM fsouza/docker-ssl-proxy
# replace the nginx config from docker-ssl-proxy with a version tweaked
# to mock out an X-Amzn-Trace-Id header
COPY ./local-ssl/docker/nginx.conf.template /

RUN apk upgrade --no-cache
1 change: 0 additions & 1 deletion node-build-assets/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# directory being mounted into this image at /service-front
FROM node:19-alpine

RUN apk upgrade --no-cache
RUN apk add --no-cache ruby
RUN npm install -g npm

Expand Down
6 changes: 3 additions & 3 deletions service-admin/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ ENV OPG_PHP_POOL_CHILDREN_MAX="25"

RUN adduser -D -g '' appuser

RUN apk add --upgrade --no-cache apk-tools
RUN apk upgrade --no-cache
RUN apk add --no-cache apk-tools


RUN apk add --no-cache icu fcgi \
&& apk add --update --no-cache --virtual .build-dependencies $PHPIZE_DEPS icu-dev \
&& apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS icu-dev \
&& docker-php-ext-install intl \
&& docker-php-ext-install bcmath

Expand Down
2 changes: 0 additions & 2 deletions service-admin/docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ RUN wget -q -O /usr/local/bin/confd "https://github.com/kelseyhightower/confd/re
# Remove unused packages
RUN apk del freetype nginx-module-image-filter curl

# Upgrade vulnerable packages
RUN apk upgrade --no-cache

USER nginx
COPY --chown=nginx:nginx service-admin/public /web
Expand Down
5 changes: 2 additions & 3 deletions service-api/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ ENV OPG_PHP_POOL_CHILDREN_MAX="25"

RUN adduser -D -g '' appuser

RUN apk add --upgrade --no-cache apk-tools
RUN apk upgrade --no-cache
RUN apk add --no-cache apk-tools

RUN apk add --no-cache postgresql-libs icu fcgi \
&& apk add --update --no-cache --virtual .build-dependencies $PHPIZE_DEPS postgresql-dev icu-dev linux-headers \
&& apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS postgresql-dev icu-dev linux-headers \
&& docker-php-ext-install pgsql pdo_pgsql \
&& docker-php-ext-install bcmath \
&& docker-php-ext-install opcache \
Expand Down
3 changes: 0 additions & 3 deletions service-api/docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ RUN wget -q -O /usr/local/bin/confd "https://github.com/kelseyhightower/confd/re
# Remove unused packages
RUN apk del freetype nginx-module-image-filter curl

# Upgrade vulnerable packages
RUN apk upgrade --no-cache

USER nginx
COPY --chown=nginx:nginx service-api/docker/web/etc /etc

Expand Down
4 changes: 2 additions & 2 deletions service-front/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM php:8.2-fpm-alpine3.16
ENV OPG_PHP_POOL_CHILDREN_MAX="25"

RUN adduser -D -g '' appuser
RUN apk add --upgrade --no-cache apk-tools
RUN apk upgrade --no-cache
RUN apk add --no-cache apk-tools


# The --virtual flag puts build dependencies into their own
# directory to make them easier to remove en masse
Expand Down
2 changes: 0 additions & 2 deletions service-front/docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ RUN wget -q -O /usr/local/bin/confd "https://github.com/kelseyhightower/confd/re
# Remove unused packages
RUN apk del freetype nginx-module-image-filter curl

# Upgrade vulnerable packages
RUN apk upgrade --no-cache

USER nginx
COPY --chown=nginx:nginx service-front/public /web
Expand Down
7 changes: 3 additions & 4 deletions service-pdf/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ FROM php:8.1-cli-alpine3.15

RUN adduser -D -g '' appuser

RUN apk add --upgrade --no-cache apk-tools
RUN apk upgrade --no-cache
RUN apk add --no-cache apk-tools

RUN apk update \
&& apk add --no-cache openjdk8-jre bash libpng \

RUN apk add --no-cache openjdk8-jre bash libpng \
&& apk add --no-cache --virtual .build-dependencies autoconf gcc make musl-dev pkgconfig zlib-dev libpng-dev \
&& docker-php-ext-install gd

Expand Down

0 comments on commit 8c2c751

Please sign in to comment.