Skip to content

Commit

Permalink
Merge pull request #1712 from Crown-Commercial-Service/alpine-image
Browse files Browse the repository at this point in the history
Use Alpine image and bump PyYaml version
  • Loading branch information
tim-s-ccs authored Jan 16, 2024
2 parents da84251 + f86ae6a commit a692c99
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions docker-aws/Dockerfile.http
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Base builds are defined in https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-aws-docker-base
FROM digitalmarketplace/dmp-http-buildstatic:1.0.0 as buildstatic
FROM 473251818902.dkr.ecr.eu-west-2.amazonaws.com/dmp-base-http-buildstatic:latest as buildstatic
COPY . .
RUN ./scripts/build.sh

FROM digitalmarketplace/dmp-http-frontend:1.0.0
COPY --from=buildstatic ${APP_DIR}/app/static ${APP_DIR}/static
FROM 473251818902.dkr.ecr.eu-west-2.amazonaws.com/dmp-base-http-frontend:latest
COPY --from=buildstatic ${APP_DIR}/app/static ${APP_DIR}/static
6 changes: 4 additions & 2 deletions docker-aws/Dockerfile.wsgi
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Base builds are defined in https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-aws-docker-base
FROM digitalmarketplace/dmp-http-buildstatic:1.0.0 as buildstatic
FROM 473251818902.dkr.ecr.eu-west-2.amazonaws.com/dmp-base-http-buildstatic:latest as buildstatic
COPY . ${APP_DIR}
RUN ./scripts/build.sh

FROM digitalmarketplace/dmp-wsgi:1.0.0
FROM 473251818902.dkr.ecr.eu-west-2.amazonaws.com/dmp-base-wsgi:latest
COPY --from=buildstatic ${APP_DIR}/node_modules/digitalmarketplace-govuk-frontend ${APP_DIR}/node_modules/digitalmarketplace-govuk-frontend
COPY --from=buildstatic ${APP_DIR}/node_modules/govuk-frontend ${APP_DIR}/node_modules/govuk-frontend
COPY --from=buildstatic ${APP_DIR}/app/content ${APP_DIR}/app/content
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ python-dateutil==2.8.1
# freezegun
python-dotenv==0.10.3
# via -r requirements-dev.in
pyyaml==5.4.1
pyyaml==6.0.1
# via
# -c requirements.txt
# watchdog
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ python-json-logger==0.1.11
# via digitalmarketplace-utils
pytz==2019.3
# via digitalmarketplace-utils
pyyaml==5.4.1
pyyaml==6.0.1
# via digitalmarketplace-content-loader
redis==3.5.3
# via digitalmarketplace-utils
Expand Down

0 comments on commit a692c99

Please sign in to comment.