Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into LL-121
Browse files Browse the repository at this point in the history
  • Loading branch information
pogi7 committed Sep 3, 2023
2 parents 864ddf2 + 473c781 commit 366a8be
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/Dockerfile
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
19 changes: 19 additions & 0 deletions docker-compose.yaml
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"
8 changes: 8 additions & 0 deletions server/Dockerfile
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

0 comments on commit 366a8be

Please sign in to comment.