Skip to content

Commit

Permalink
add google file to dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Erika Ledesma <[email protected]>
  • Loading branch information
erikajledesma committed Jul 6, 2024
1 parent 51d61c7 commit 2a3c095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/routes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ FROM node:latest
WORKDIR /routes

# Copies files from the routes directory
COPY ["github.ts", "routes.ts", "/routes"]
COPY ["github.ts", "google.ts", "routes.ts", "/routes"]
COPY ["package.json", "/routes"]

# Runs npm install using bash shell
RUN ["/bin/bash", "-c", "npm install"]

# Port 4000 is the server port, 8080 is the cors-anywhere port
EXPOSE 4000 8080
EXPOSE 4000 5000 8080

CMD ["npx", "ts-node", "github.ts"]
CMD ["npx", "ts-node", "github.ts", "google.ts"]
2 changes: 1 addition & 1 deletion src/routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "routes.ts",
"scripts": {
"test": "npx ts-node routes.ts",
"account": "npx ts-node github.ts"
"account": "npx ts-node github.ts google.ts"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 2a3c095

Please sign in to comment.