-
Notifications
You must be signed in to change notification settings - Fork 1
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 #720 from frog-pond/hawken/tsc-on-js
- Loading branch information
Showing
105 changed files
with
6,534 additions
and
2,239 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
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 |
---|---|---|
|
@@ -14,3 +14,7 @@ | |
# Logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Typescript | ||
/.tsbuildinfo | ||
/dist/ |
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,19 +1,35 @@ | ||
FROM node:22-alpine | ||
FROM node:22-alpine AS modules_dev | ||
WORKDIR /app | ||
|
||
RUN apk add -U curl | ||
COPY --link ./package.json ./package-lock.json ./ | ||
RUN npm ci | ||
|
||
WORKDIR /app | ||
COPY ./package.json ./package-lock.json ./ | ||
|
||
FROM modules_dev AS modules | ||
RUN npm ci --omit=dev | ||
|
||
HEALTHCHECK --interval=20s --timeout=1s \ | ||
CMD curl -f http://localhost:80/ping | ||
|
||
COPY ./source ./source | ||
FROM modules_dev AS build | ||
COPY --link tsconfig.json . | ||
COPY --link ./source ./source | ||
COPY --link ./types ./types | ||
RUN npm run build | ||
|
||
|
||
FROM node:22-alpine AS runtime | ||
WORKDIR /app | ||
|
||
RUN apk add -U curl | ||
|
||
COPY --link ./package.json ./package-lock.json ./ | ||
COPY --link --from=modules /app/node_modules ./node_modules | ||
COPY --link --from=build /app/dist ./dist | ||
|
||
ENV NODE_ENV=production | ||
ENV NODE_PORT=80 | ||
ENV INSTITUTION=unknown | ||
|
||
CMD node -r dotenv/config ./source/ccc-server/index.js | ||
HEALTHCHECK --interval=20s --timeout=1s \ | ||
CMD curl -f http://localhost:80/ping | ||
|
||
CMD node ./dist/source/ccc-server/index.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
Oops, something went wrong.