Skip to content

Commit

Permalink
Updating Dockerfile along with debug elements in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanbellary committed Jan 30, 2025
1 parent 42cdbeb commit ac0a32b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ LABEL org.opencontainers.image.licenses=MIT
WORKDIR /

COPY ./package.json ./package.json
COPY ./yarn.lock ./yarn.lock
RUN yarn install --frozen-lockfile
# RUN yarn install
# RUN yarn add --dev [email protected]

RUN yarn install
RUN yarn add [email protected]
RUN yarn tsc --version
COPY . .

EXPOSE 4000
Expand Down
2 changes: 2 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { version } from 'typescript';
import MongoConnection from './src/config/mongoConnection.ts';
import createExpressApp from './src/config/createExpressApp.ts';
import 'dotenv/config';

console.log(`Using TypeScript version: ${version}`);
const main = async () => {
// Listen for termination
process.on('SIGTERM', () => process.exit());
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"supertest": "^6.2.2",
"ts-jest": "^29.0.3",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.4"
"typescript": "^5.6.2"
}
}

0 comments on commit ac0a32b

Please sign in to comment.