diff --git a/Dockerfile b/Dockerfile index 1e2670c..92501d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,30 @@ FROM node:20 +# Install pnpm globally RUN npm i -g pnpm@9.0.0 WORKDIR /app +# Copy only package files to install dependencies COPY package*.json ./ +# Install dependencies using pnpm RUN pnpm i +# Copy the source code to the container COPY src/ ./src/ -RUN pnpm run build && ls -al ./dist +# Build the project, ensuring it compiles to the dist directory +RUN pnpm run build +# Check if dist/index.js exists and list files in the dist directory +RUN ls -al ./dist + +# Start the application ENTRYPOINT ["node", "./dist/index.js"] LABEL \ "name"="Auto Issue Action" \ "homepage"="https://github.com/marketplace/actions/auto-issue" \ "repository"="https://github.com/offensive-vk/auto-issue" \ - "maintainer"="TheHamsterBot " \ No newline at end of file + "maintainer"="TheHamsterBot "