-
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.
Merge pull request #8 from async3619/dev
- Loading branch information
Showing
81 changed files
with
63,112 additions
and
540 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,6 @@ | ||
/node_modules | ||
/.idea | ||
/.git | ||
/bin | ||
/scripts | ||
/.github |
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,3 +1,5 @@ | ||
/.git | ||
/dist | ||
/node_modules | ||
/schemas | ||
/src/queries.data.ts |
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
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
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,12 @@ | ||
{ | ||
"name": "Untitled GraphQL Schema", | ||
"schemaPath": "./schemas/github.graphqls", | ||
"extensions": { | ||
"endpoints": { | ||
"Default GraphQL Endpoint": { | ||
"url": "https://api.github.com/graphql", | ||
"introspect": false | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
FROM node:20.18-alpine as builder | ||
|
||
RUN apk add --update --no-cache curl git openssh openssl | ||
|
||
USER node | ||
WORKDIR /home/node | ||
|
||
COPY --chown=node:node package*.json ./ | ||
COPY --chown=node:node yarn.lock ./ | ||
RUN yarn install --frozen-lockfile | ||
|
||
COPY --chown=node:node . . | ||
|
||
ARG NODE_ENV=production | ||
ARG APP_ENV=production | ||
|
||
ENV NODE_ENV ${NODE_ENV} | ||
|
||
RUN ["yarn", "build"] | ||
|
||
FROM node:20.18-alpine as prod-deps | ||
|
||
USER node | ||
WORKDIR /home/node | ||
|
||
# copy from build image | ||
COPY --from=builder /home/node/yarn.lock ./yarn.lock | ||
COPY --from=builder /home/node/package.json ./package.json | ||
RUN yarn install --frozen-lockfile --prod | ||
|
||
ARG NODE_ENV=production | ||
ARG APP_ENV=production | ||
|
||
ENV NODE_ENV ${NODE_ENV} | ||
|
||
CMD [ "node", "dist/src/index" ] | ||
|
||
FROM node:20.18-alpine as production | ||
|
||
USER node | ||
WORKDIR /home/node | ||
|
||
# copy from build image | ||
COPY --from=prod-deps /home/node/node_modules ./node_modules | ||
COPY --from=builder /home/node/dist ./dist | ||
COPY --from=builder /home/node/yarn.lock ./yarn.lock | ||
COPY --from=builder /home/node/package.json ./package.json | ||
RUN yarn install --frozen-lockfile --prod | ||
|
||
ARG NODE_ENV=production | ||
ARG APP_ENV=production | ||
|
||
ENV NODE_ENV ${NODE_ENV} | ||
|
||
CMD [ "node", "dist/src/index" ] |
Oops, something went wrong.