Skip to content

Commit

Permalink
initial commit server
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypatel1210 committed Nov 18, 2024
1 parent 97510ee commit f4e3759
Show file tree
Hide file tree
Showing 16 changed files with 6,173 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
27 changes: 27 additions & 0 deletions server/.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

1 change: 1 addition & 0 deletions server/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.13.1
15 changes: 15 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20.13.0 AS installer
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .


FROM alpine:3.19
RUN apk add --no-cache nodejs
RUN addgroup -S node && adduser -S node -G node
USER node
WORKDIR /app
COPY --from=installer /app .
EXPOSE 4000
CMD ["node", "./src/index.js"]
Loading

0 comments on commit f4e3759

Please sign in to comment.