Skip to content

Commit

Permalink
Merge pull request #566 from Crown-Commercial-Service/alpine-image
Browse files Browse the repository at this point in the history
Alpine image
  • Loading branch information
tim-s-ccs authored Jan 16, 2024
2 parents 9e7f579 + 41dc97d commit 55558ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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

0 comments on commit 55558ee

Please sign in to comment.