Browse Source

Update workflows and Dockerfile for TS

pull/41/head
Abheek Dhawan 3 years ago
parent
commit
af60c2e0d3
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 2
      .github/workflows/eslint.yml
  2. 6
      Dockerfile

2
.github/workflows/eslint.yml

@ -12,4 +12,4 @@ jobs:
- name: Install modules - name: Install modules
run: yarn run: yarn
- name: Run ESLint - name: Run ESLint
run: yarn run eslint . --ext .js,.jsx,.ts,.tsx run: yarn run eslint ./src --ext .js,.jsx,.ts,.tsx

6
Dockerfile

@ -6,9 +6,11 @@ WORKDIR /usr/src/app
# Install deps # Install deps
COPY package.json ./ COPY package.json ./
COPY yarn.lock ./ COPY yarn.lock ./
RUN yarn RUN yarn
COPY . . # Build
RUN yarn tsc
COPY ./built/* .
CMD [ "node", "index.js" ] CMD [ "node", "index.js" ]

Loading…
Cancel
Save