-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from DXHeroes/fix/docker-entrypoint-chmod
fix: Dockerfile chmod for entrypoint not versioned
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 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,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"] |