This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
-
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.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 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,7 @@ | ||
FROM node:latest | ||
WORKDIR /client | ||
COPY ["package.json", "package-lock.json*", "tsconfig.json*", "/client"] | ||
COPY ["src", "/client/src"] | ||
COPY ["public", "/client/public"] | ||
RUN ["/bin/bash", "-c", "npm install"] | ||
EXPOSE 3000 |
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,19 @@ | ||
version: "3.8" | ||
|
||
services: | ||
server: | ||
build: "server/" | ||
command: "npx ts-node src/routes/github.ts" | ||
ports: | ||
- "4000:4000" | ||
- "8000:8000" | ||
env_file: ".env" | ||
client: | ||
build: "client/" | ||
command: "npm start" | ||
ports: | ||
- "3000:3000" | ||
env_file: ".env" | ||
# Requires server services to run before running client servers | ||
depends_on: | ||
- "server" |
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,8 @@ | ||
FROM node:latest | ||
WORKDIR /server | ||
COPY ["package.json", "package-lock.json*", "tsconfig.json*", "/server"] | ||
COPY ["src", "/server/src"] | ||
RUN ["/bin/bash", "-c", "npm install"] | ||
|
||
# Server port, Cors-anywhere port | ||
EXPOSE 4000 8000 |