Skip to content

Commit

Permalink
initial commit background
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypatel1210 committed Nov 18, 2024
1 parent 243b3cc commit af2bb78
Show file tree
Hide file tree
Showing 9 changed files with 5,923 additions and 0 deletions.
3 changes: 3 additions & 0 deletions background/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
node_modules
npm-debug.log
27 changes: 27 additions & 0 deletions background/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
/logs/*
12 changes: 12 additions & 0 deletions background/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:20.13.0 AS installer
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --only=production
COPY . .

# Runtime stage
FROM node:20-alpine AS runtime
WORKDIR /app
COPY --from=installer /app .
EXPOSE 4070
CMD ["node", "./src/index.js"]
Loading

0 comments on commit af2bb78

Please sign in to comment.