Skip to content

Commit f9c3098

Browse files
committed
exluding the dockerfiles from dockerignore
1 parent 0028879 commit f9c3098

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ Thumbs.db
2121
build/
2222
dist/
2323

24-
# Optional: Ignoring the Dockerfile itself
25-
Dockerfile
2624

2725
# Optional: Ignore test reports or coverage files
2826
coverage/

order-service/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:16-alpine
2+
WORKDIR /app
3+
COPY package.json ./
4+
RUN npm install
5+
COPY . .
6+
CMD ["node", "server.js"]

user-service/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:16-alpine
2+
WORKDIR /app
3+
COPY package.json ./
4+
RUN npm install
5+
COPY . .
6+
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)