-
Notifications
You must be signed in to change notification settings - Fork 28
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
1 parent
152b29d
commit 075a5c5
Showing
6 changed files
with
52 additions
and
1 deletion.
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 @@ | ||
node_modules/ | ||
.vscode/ | ||
private/ | ||
js/ | ||
highscoreData.json | ||
staticData/ | ||
.git/ |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
/js/ | ||
/highscoreData.json | ||
/staticData/ | ||
/.env |
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,22 @@ | ||
FROM node:carbon AS build | ||
WORKDIR /cml | ||
COPY tsconfig.json ./ | ||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
# Install all dependencies for compilation. | ||
RUN npm install | ||
COPY ts/ ts/ | ||
RUN npm run compile | ||
|
||
FROM node:carbon AS run | ||
WORKDIR /cml | ||
COPY --from=build cml/js/ js/ | ||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
# Install only runtime dependencies. | ||
RUN npm install --only=prod | ||
COPY views/ views/ | ||
COPY public/ public/ | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["node", "js/server.js"] |
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,6 @@ | ||
# Overrides for running in development. | ||
version: "3.6" | ||
services: | ||
cml: | ||
ports: | ||
- "8080:8080" |
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,15 @@ | ||
version: "3.6" | ||
services: | ||
cml: | ||
build: | ||
context: ./ | ||
volumes: | ||
- "staticData:/cml/staticData/" | ||
- "highscoreData:/cml/highscoreData" | ||
environment: | ||
RIOT_API_KEY: | ||
DATA_DIR: "/cml/highscoreData/" | ||
restart: unless-stopped | ||
volumes: | ||
staticData: | ||
highscoreData: |
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