mirror of
https://github.com/bcanseco/github-contribution-graph-action.git
synced 2025-10-09 13:41:58 +03:00
refactor(docker): use uncommon subdirectory name
This commit is contained in:
@@ -3,8 +3,8 @@ FROM node:14.3.0
|
||||
|
||||
# When running as a GitHub Action, the WORKDIR is controlled by GitHub.
|
||||
# Furthermore, they recommend NOT setting it in the Dockerfile, which makes running locally difficult.
|
||||
# Thus we copy files to an /app directory to also be used when running Docker outside GitHub Actions.
|
||||
COPY . /app
|
||||
# Thus we copy files to another directory and cd into it before running (regardless of the environment).
|
||||
COPY . /contribution-graph-github-action
|
||||
|
||||
# Executing a shell is required for environment variable substitution when running as a GitHub Action.
|
||||
ENTRYPOINT ["sh", "-c", "cd /app && npm install --production && npm start"]
|
||||
ENTRYPOINT ["sh", "-c", "cd /contribution-graph-github-action && npm install --production && npm start"]
|
||||
|
||||
Reference in New Issue
Block a user