Skip to content

Commit

Permalink
Update Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHamsterBot authored Oct 10, 2024
1 parent 8b57ab8 commit c6a7d6f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
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]>"

0 comments on commit c6a7d6f

Please sign in to comment.