Skip to content

Commit

Permalink
Merge pull request #503 from DXHeroes/fix/docker-entrypoint-chmod
Browse files Browse the repository at this point in the history
fix: Dockerfile chmod for entrypoint not versioned
  • Loading branch information
prokopsimek authored Jan 4, 2021
2 parents 4e9c043 + 7d14690 commit 8e00007
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FROM node:12.16-alpine

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh ../entrypoint.sh

RUN apk update && apk add -q \
ca-certificates \
git \
&& yarn global add dx-scanner \
&& dx-scanner --version \
&& mkdir /usr/app \
&& chmod +x ../entrypoint.sh
git

RUN yarn global add dx-scanner \
&& dx-scanner --version

RUN mkdir /usr/app
WORKDIR /usr/app

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh ../entrypoint.sh

RUN chmod +x ../entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["../entrypoint.sh"]

0 comments on commit 8e00007

Please sign in to comment.