Skip to content

Commit

Permalink
chore: build dockerfile and gitignore (cncgnd#3)
Browse files Browse the repository at this point in the history
Dockerfile and gitignore file setup
  • Loading branch information
khareyash05 authored Apr 15, 2024
2 parents 99dce96 + bc78572 commit 8f9e325
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
npm-debug.log
build
.git
*.md
.gitignore
dist
27 changes: 23 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
=======
# Dependency directories
node_modules/

Expand All @@ -8,11 +24,14 @@ out/

# Environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# vite
dist
=======
# Editor directories and files
.vscode/
.idea/
Expand Down
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:18-alpine as builder

WORKDIR /app

COPY package*.json .

RUN npm install

COPY . .

RUN npm run build

CMD ["npm","start"]

0 comments on commit 8f9e325

Please sign in to comment.