From 5b1b6219a1b2b7ead92e953d010bf6c403896f8c Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Fri, 15 Sep 2023 12:42:04 -0400 Subject: [PATCH] Fix linting errors --- .github/workflows/linter.yml | 11 +++++++++++ Dockerfile | 8 +++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 61eb372..2c96333 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -23,6 +23,17 @@ jobs: id: checkout uses: actions/checkout@v4 + - name: Setup Node.js + id: setup-node + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: npm + + - name: Install Dependencies + id: install + run: npm ci + - name: Lint Code Base id: super-linter uses: super-linter/super-linter/slim@v5 diff --git a/Dockerfile b/Dockerfile index a9c03ef..8ca2dd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ # Set the base image to use for subsequent instructions FROM node:slim +# Create a directory for the action code +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + # Copy the repository contents to the container COPY . . -# RUN npm install --production - # Run the specified command within the container -ENTRYPOINT ["node", "/dist/index.js"] +ENTRYPOINT ["node", "/usr/src/app/dist/index.js"]