generated from companieshouse/node-review-web-starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from companieshouse/feature/add-debug
Add launch config and inspect to nodemon config
- Loading branch information
Showing
5 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Remote", | ||
"address": "localhost", | ||
"port": 9229, | ||
"restart": true, | ||
"sourceMaps": true, | ||
"remoteRoot": "/app", | ||
"localRoot": "${workspaceFolder}", | ||
"resolveSourceMapLocations": [ | ||
"${workspaceFolder}/**", | ||
"!**/node_modules/**" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
ARG IMAGE_VERSION="latest" | ||
FROM 416670754337.dkr.ecr.eu-west-2.amazonaws.com/ci-node-runtime-20:${IMAGE_VERSION} | ||
FROM node:20 | ||
|
||
RUN cp -r ./dist/* ./ && rm -rf ./dist | ||
RUN ls | ||
CMD ["./server.js","--","3000"] | ||
EXPOSE 3000 | ||
ARG SSH_KEY | ||
ENV SSH_KEY=$SSH_KEY | ||
# Make ssh dir | ||
RUN mkdir /root/.ssh/ | ||
# Create id_rsa from string arg, and set permissions | ||
RUN echo "$SSH_KEY" >/root/.ssh/id_rsa | ||
RUN chmod 600 /root/.ssh/id_rsa | ||
# Create known_hosts | ||
RUN touch /root/.ssh/known_hosts | ||
# Add git providers to known_hosts | ||
RUN ssh-keyscan bitbucket.org >>/root/.ssh/known_hosts | ||
RUN ssh-keyscan github.com >>/root/.ssh/known_hosts | ||
RUN ssh-keyscan gitlab.com >>/root/.ssh/known_hosts | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
CMD [ "npm", "run", "start:watch" ] | ||
# ENTRYPOINT [ "bash" ] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters