Skip to content

Commit 7381966

Browse files
committed
fix(docker): execute within /app
1 parent dba0384 commit 7381966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM node:14.3.0
33

44
# When running as a GitHub Action, the WORKDIR is controlled by GitHub.
55
# Furthermore, they recommend NOT setting it in the Dockerfile, which makes running locally difficult.
6-
# Thus we copy files to an /app directory to be used when running Docker outside GitHub Actions.
6+
# Thus we copy files to an /app directory to also be used when running Docker outside GitHub Actions.
77
COPY . /app
88

99
# Executing a shell is required for environment variable substitution when running as a GitHub Action.
10-
ENTRYPOINT ["sh", "-c", "npm install --production && npm start"]
10+
ENTRYPOINT ["sh", "-c", "cd /app && npm install --production && npm start"]

0 commit comments

Comments
 (0)