-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b57ab8
commit c6a7d6f
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
FROM node:20 | ||
|
||
# Install pnpm globally | ||
RUN npm i -g [email protected] | ||
|
||
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 <[email protected]>" | ||
"maintainer"="TheHamsterBot <[email protected]>" |