From af60c2e0d344e322a9b16fb7e75bc0d4262f4a91 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 21 Mar 2022 12:04:42 -0500 Subject: [PATCH] Update workflows and Dockerfile for TS --- .github/workflows/eslint.yml | 2 +- Dockerfile | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index abb867b..152fb62 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -12,4 +12,4 @@ jobs: - name: Install modules run: yarn - name: Run ESLint - run: yarn run eslint . --ext .js,.jsx,.ts,.tsx + run: yarn run eslint ./src --ext .js,.jsx,.ts,.tsx diff --git a/Dockerfile b/Dockerfile index 072945e..39ac949 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,11 @@ WORKDIR /usr/src/app # Install deps COPY package.json ./ COPY yarn.lock ./ - RUN yarn -COPY . . +# Build +RUN yarn tsc + +COPY ./built/* . CMD [ "node", "index.js" ]