Skip to content

Custom Docker Action can't find node script #25167

Answered by Yanjingzhu
Muhlex asked this question in Actions
Discussion options

You must be logged in to vote

Hi @muhlex , 

Please don’t set the working directory to  /github/workspace in the action Dockerfile. You could just copy it to the root path. Please try to the method below: 

FROM node:lts

Bundle app source

COPY index.js /index.js
RUN ["chmod", "+x", "index.js"]

Debug to verify that everything is setup correctly

RUN ls
ENTRYPOINT ["node", "/index.js"]

 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants