Skip to content

Commit

Permalink
Merge pull request #72 from companieshouse/feature/package.json-changes
Browse files Browse the repository at this point in the history
changes to path
  • Loading branch information
akachwala-ch authored Feb 14, 2024
2 parents eb95770 + 75eb4e7 commit 60a45ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ endif
cp -r ./dist/* $(tmpdir)
cp -r ./package.json $(tmpdir)
cp -r ./package-lock.json $(tmpdir)
cp ./start.sh $(tmpdir)
cd $(tmpdir) && npm ci --omit=dev --ignore-scripts
cp -r ./.git $(tmpdir)
cd $(tmpdir) && export GIT_SSH_COMMAND="ssh" && npm ci --production
rm $(tmpdir)/package.json $(tmpdir)/package-lock.json
cd $(tmpdir) && zip -r ../$(artifact_name)-$(version).zip .
rm -rf $(tmpdir)
Expand Down
5 changes: 2 additions & 3 deletions ecs-image-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
ARG IMAGE_VERSION="latest"
FROM 416670754337.dkr.ecr.eu-west-2.amazonaws.com/ci-node-runtime-20:${IMAGE_VERSION}

WORKDIR /opt/dist
WORKDIR /opt
COPY /app .
COPY dist ./
COPY docker_start.sh ./
COPY docker_start.sh .

CMD ["./docker_start.sh"]
2 changes: 1 addition & 1 deletion ecs-image-build/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
PORT=3000

export NODE_PORT=${PORT}
exec node src/main/server.js -- ${PORT}
exec node /opt/dist/src/main/server.js -- ${PORT}

0 comments on commit 60a45ce

Please sign in to comment.