We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dba0384 commit 7381966Copy full SHA for 7381966
Dockerfile
@@ -3,8 +3,8 @@ FROM node:14.3.0
3
4
# When running as a GitHub Action, the WORKDIR is controlled by GitHub.
5
# 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.
+# Thus we copy files to an /app directory to also be used when running Docker outside GitHub Actions.
7
COPY . /app
8
9
# Executing a shell is required for environment variable substitution when running as a GitHub Action.
10
-ENTRYPOINT ["sh", "-c", "npm install --production && npm start"]
+ENTRYPOINT ["sh", "-c", "cd /app && npm install --production && npm start"]
0 commit comments