-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker build config for cyberstorm-nextjs
Add necessary configs for building a container distribution of the cyberstorm-nextjs app
- pre-0.0.32
- pre-0.0.31
- pre-0.0.30
- pre-0.0.29
- pre-0.0.28
- pre-0.0.27
- pre-0.0.26
- pre-0.0.25
- pre-0.0.24
- pre-0.0.23
- pre-0.0.22
- pre-0.0.21
- pre-0.0.20
- pre-0.0.19
- pre-0.0.18
- pre-0.0.17
- pre-0.0.16
- pre-0.0.15
- pre-0.0.14
- pre-0.0.13
- pre-0.0.12
- pre-0.0.11
- pre-0.0.10
- pre-0.0.9
- pre-0.0.8
- pre-0.0.7
- pre-0.0.6
- pre-0.0.5
- pre-0.0.4
- pre-0.0.3
- pre-0.0.2
- pre-0.0.1
- 4.1.0
- 4.0.0
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
1 parent
ce20cc9
commit 02b051d
Showing
7 changed files
with
74 additions
and
0 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
**/node_modules | ||
.git | ||
build-secrets | ||
**/next-env.d.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# For running @thunderstore/cyberstorm-nextjs in Docker container. | ||
FROM node:18-alpine3.17 | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json yarn.lock babel.config.js .eslintrc.json .eslintignore .yarnrc .prettierrc .prettierignore .stylelintrc ./ | ||
COPY .yarn ./.yarn | ||
COPY packages ./packages | ||
COPY apps/cyberstorm-nextjs ./apps/cyberstorm-nextjs | ||
RUN chown node:node -R /app | ||
|
||
USER node | ||
RUN --mount=type=secret,id=npmrc,target=/home/node/.npmrc,uid=1000 yarn install --frozen-lockfile | ||
RUN yarn workspace @thunderstore/cyberstorm-nextjs run build | ||
|
||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV NODE_ENV production | ||
ENV PORT 3000 | ||
EXPOSE 3000 | ||
|
||
CMD ["yarn", "workspace", "@thunderstore/cyberstorm-nextjs", "start"] |
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 @@ | ||
/// <reference types="react/next" /> |
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,3 @@ | ||
* | ||
!.gitignore | ||
!README.md |
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 @@ | ||
# Build Secrets | ||
|
||
This directory exists to house secrets that should not be committed to git but | ||
should be available when building, such as the .npmrc file. | ||
|
||
The docker compose configuration should expect any such build-time secrets to | ||
be in this directory. |
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