Skip to content

Commit 0b285e6

Browse files
committed
basic dockeer template added to make the application workable on production
1 parent 044d539 commit 0b285e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+7
-4763
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
logs
3+
yarn-error.log

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use a Node.js image
2-
FROM node:18.18.0
2+
FROM node:18.18.0-alpine
33

44
# Set the working directory
55
WORKDIR /app
@@ -10,6 +10,9 @@ COPY . .
1010
# Install dependencies
1111
RUN yarn install
1212

13+
# Build the application
14+
RUN yarn build
15+
1316
# Expose the port if required
1417
EXPOSE 5000
1518

dist/app.js

Lines changed: 0 additions & 66 deletions
This file was deleted.

dist/app/modules/Common/Common.controller.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

dist/app/modules/Common/Common.routes.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

dist/app/modules/Common/Common.service.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/app/modules/History/History.interface.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/app/modules/History/History.model.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

dist/app/modules/Organization/Organization.constant.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/app/modules/Organization/Organization.controller.js

Lines changed: 0 additions & 158 deletions
This file was deleted.

dist/app/modules/Organization/Organization.interface.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)