Skip to content

Commit e4152f6

Browse files
committed
docker additions
1 parent 1d16284 commit e4152f6

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
.gitignore
3+
*.test.js
4+
jest.config.js
5+
.docker
6+
.github
7+
.vscode
8+
dummy

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ ENV DEBIAN_FRONTEND=noninteractive
66
COPY . /app/
77
COPY ./entrypoint.sh /entrypoint.sh
88

9+
# IMPORTANT:
10+
#
11+
# GitHub sets the working directory path in the GITHUB_WORKSPACE
12+
# environment variable. It's recommended to not use the WORKDIR
13+
# instruction in your Dockerfile
14+
#
15+
# docs: https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir
16+
917
RUN cd /app && npm install --omit=dev
1018

1119
ENTRYPOINT ["/entrypoint.sh"]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"gh": "node github.js",
1212
"test": "jest",
1313
"test:index": "jest --testPathPattern=index.test.js",
14-
"test:github": "jest --testPathPattern=github.test.js"
14+
"test:github": "jest --testPathPattern=github.test.js",
15+
"docker:build": "docker build -t github-graphql-client -f Dockerfile ."
1516
},
1617
"keywords": [
1718
"git",

0 commit comments

Comments
 (0)