Skip to content

Commit

Permalink
Merge pull request #9 from mojaloop/fix-docker-image
Browse files Browse the repository at this point in the history
ci: fixed docker image builds and fixed ci pipeline
  • Loading branch information
elijah0kello authored Mar 8, 2024
2 parents f7c04f1 + 2c9f9c9 commit ba0f429
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,27 +398,14 @@ workflows:
- /feature*/
- /bugfix*/

# - test-functional:
# context: org-global
# requires:
# - setup
# - build-local
# filters:
# tags:
# only: /.*/
# branches:
# ignore:
# - /feature*/
# - /bugfix*/

# New commits to main release automatically
- release:
context: org-global
requires:
- pr-tools/pr-title-check
- test-dependencies
- test-lint
# - test-functional
# - test-func
filters:
branches:
only:
Expand All @@ -439,7 +426,8 @@ workflows:
- pr-tools/pr-title-check
- test-dependencies
- test-lint
# - test-functional
# - test-func
- build-local
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
Expand All @@ -452,7 +440,8 @@ workflows:
- pr-tools/pr-title-check
- test-dependencies
- test-lint
# - test-functional
# - test-func
- build-local
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*\-snapshot+((\.[0-9]+)?)/
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN npm ci
## Build the app
RUN npm run build


## *Application*
FROM node:lts-alpine

Expand All @@ -27,6 +28,7 @@ RUN npm ci --production

## Copy of dist directory from builder
COPY --from=builder /opt/app/dist/ ./dist/
COPY --from=builder /opt/app/src/api-spec ./src/api-spec

## Expose any application ports
# EXPOSE <PORT>
Expand Down

0 comments on commit ba0f429

Please sign in to comment.