-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders, GitHub deploy and OAuth & UI refactoring
- Loading branch information
Showing
65 changed files
with
3,685 additions
and
1,838 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 |
---|---|---|
@@ -1 +1,7 @@ | ||
NEXT_PUBLIC_ALEPH_CHANNEL=TEST | ||
NEXT_PUBLIC_ALEPH_CHANNEL=TEST | ||
|
||
NEXT_PUBLIC_GITCLONE_DIR=repositories | ||
NEXT_PUBLIC_GITHUB_CLIENT_ID="your OAuth client id" | ||
NEXT_PUBLIC_GITHUB_CLIENT_SECRET="your OAuth client secret" | ||
NEXTAUTH_URL=http://localhost:8080 | ||
NEXTAUTH_SECRET="secret" |
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 |
---|---|---|
@@ -1,41 +1,35 @@ | ||
### | ||
# Builder image | ||
### | ||
FROM node:16.5-alpine AS builder | ||
FROM node:16-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Install dependencies | ||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
# Install dependencies | ||
RUN yarn install | ||
RUN yarn --frozen-lockfile; | ||
|
||
# Copy source (see .dockerignore) | ||
COPY . . | ||
|
||
# Add env variable | ||
# Add env variables | ||
ENV NEXT_PUBLIC_ALEPH_CHANNEL=TEST | ||
ENV NEXTAUTH_URL="http://localhost:8080" | ||
ENV NEXTAUTH_SECRET = $(openssl rand -base64 32) | ||
ENV NEXT_PUBLIC_GITCLONE_DIR="repositories" | ||
ENV NEXT_PUBLIC_GITHUB_CLIENT_ID="your OAuth client id" | ||
ENV NEXT_PUBLIC_GITHUB_CLIENT_SECRET="your OAuth client secret" | ||
|
||
# Build source | ||
RUN yarn run build | ||
RUN yarn build | ||
|
||
### | ||
# Production image | ||
### | ||
FROM nginx:1.21.6-alpine as app | ||
|
||
WORKDIR /app | ||
# Automatically leverage output traces to reduce image size | ||
# https://nextjs.org/docs/advanced-features/output-file-tracing | ||
RUN mv next.config.js .next/standalone/ | ||
RUN mv public .next/standalone/ | ||
RUN mv .next/static .next/standalone/.next/ | ||
|
||
# Copy code | ||
COPY --from=builder /app/build /usr/share/nginx/html | ||
WORKDIR /app/.next/standalone | ||
|
||
# Copy nginx configuration | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 8080 | ||
|
||
# Expose PORT | ||
EXPOSE 80 | ||
ENV PORT 8080 | ||
|
||
# Prefix commands and start production | ||
ENTRYPOINT ["nginx", "-g", "daemon off;"] | ||
CMD ["node", "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
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
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,6 +1,7 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
output: 'standalone', | ||
} | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.