Skip to content

Commit

Permalink
Merge pull request #2 from yeranosyanvahan/Gatsby
Browse files Browse the repository at this point in the history
Gatsby
  • Loading branch information
yeranosyanvahan authored Nov 16, 2023
2 parents 2cc0a91 + cbba2df commit 2bd7a9a
Show file tree
Hide file tree
Showing 210 changed files with 1,322 additions and 26,638 deletions.
119 changes: 64 additions & 55 deletions .gitignore
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
21 changes: 8 additions & 13 deletions Dockerfile
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;"]
Loading

0 comments on commit 2bd7a9a

Please sign in to comment.