-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build hackernews app docker container
- Loading branch information
Showing
7 changed files
with
137 additions
and
8 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 |
---|---|---|
|
@@ -18,3 +18,4 @@ packages/graphql-yoga/src/graphiql-html.ts | |
.tool-versions | ||
|
||
.mise.toml | ||
.hackernews-deploy |
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,23 @@ | ||
FROM node:22-slim | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY ./package.json /usr/src/app | ||
COPY ./node_modules /usr/src/app/node_modules | ||
|
||
COPY ./dist/src/ /usr/src/app/ | ||
|
||
LABEL org.opencontainers.image.title="Hackernews GraphQL Server" | ||
LABEL org.opencontainers.image.version=$RELEASE | ||
LABEL org.opencontainers.image.description="A Hackernews clone built with GraphQL and graphql-yoga." | ||
LABEL org.opencontainers.image.authors="The Guild" | ||
LABEL org.opencontainers.image.vendor="Laurin Quast" | ||
LABEL org.opencontainers.image.url="https://github.com/dotansimha/graphql-yoga/tree/main/examples/hackernews" | ||
LABEL org.opencontainers.image.source="https://github.com/dotansimha/graphql-yoga/tree/main/examples/hackernews" | ||
|
||
ENV ENVIRONMENT production | ||
ENV RELEASE $RELEASE | ||
|
||
ENTRYPOINT ["node", "main.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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.