Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
fix: Working docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Erb3 committed Jun 4, 2023
1 parent 2a1d2e2 commit 8a9788c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
npm-debug.log
node_modules;
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM node:16-alpine AS build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
RUN npm install
RUN npm run build

FROM gcr.io/distroless/nodejs:16
FROM node:16-alpine
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/node_modules ./node_modules
COPY . .
COPY --from=build /usr/src/app/dist ./
COPY package* ./
RUN npm install --omit=dev
CMD [ "app.js" ]
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@
"skipLibCheck": true
/* Skip type checking all .d.ts files. */
},
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "tests", "jest.config.ts"]
}

0 comments on commit 8a9788c

Please sign in to comment.