-
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 #2 from yeranosyanvahan/Gatsby
Gatsby
- Loading branch information
Showing
210 changed files
with
1,322 additions
and
26,638 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,68 +1,77 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
**/node_modules/** | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
node_modules/ | ||
.cache/ | ||
public/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
*chatgpt* | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
# MacOS folder attributes | ||
.DS_Store | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
# Optional vscode directory | ||
.vscode/ | ||
|
||
# Gatsby files | ||
*.log | ||
*.ico | ||
*.map | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
# System Files | ||
*.sav | ||
*.state | ||
|
||
# Yarn | ||
yarn-error.log | ||
.pnp/ | ||
.pnp.js | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.* | ||
!.env.example | ||
.env.development | ||
.env.production | ||
.env.*.local | ||
|
||
# Gatsby build output | ||
/public | ||
|
||
# Parcel build output | ||
/dist | ||
|
||
# Yarn Plug'n'Play: https://yarnpkg.com/en/docs/pnp | ||
.pnp.* | ||
|
||
# Gatsby | ||
/.cache/ | ||
/public | ||
gatsby-config.js | ||
gatsby-node.js | ||
|
||
# Misc | ||
*.DS_Store | ||
Thumbs.db | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# npm | ||
package-lock.json | ||
npm-debug.log* | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.cache | ||
**/.cache | ||
|
||
.idea | ||
.vscode | ||
.DS_Store | ||
update.py |
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,18 +1,13 @@ | ||
# Build stage | ||
FROM node:20.9 as react | ||
WORKDIR /app | ||
ADD ./package*.json ./ | ||
RUN npm install -y | ||
COPY ./ ./ | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build | ||
|
||
FROM httpd:2.4 | ||
# Production stage | ||
FROM nginx:stable-alpine as production-stage | ||
COPY --from=build-stage /app/public /usr/share/nginx/html | ||
EXPOSE 80 | ||
|
||
RUN sed -i \ | ||
-e 's/ServerAdmin you@example.com/ServerAdmin admin@yeranosyanvahan.com/g' \ | ||
-e 's/ServerName www.example.com:80/ServerName www.yeranosyanvahan.com/g' \ | ||
conf/httpd.conf | ||
|
||
RUN echo "ErrorDocument 404 /index.html" >> conf/httpd.conf | ||
|
||
COPY --from=react /app/build /usr/local/apache2/htdocs/ | ||
CMD ["nginx", "-g", "daemon off;"] |
Oops, something went wrong.