Skip to content

Commit 402686c

Browse files
committed
fix: add jre to the dockerfile build
1 parent d5ae6ca commit 402686c

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

.github/workflows/stacks-blockchain-api.yml

-18
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v2
4545

46-
- uses: actions/setup-java@v1
47-
with:
48-
java-version: '9.0.4'
49-
java-package: jdk
50-
architecture: x64
51-
5246
- uses: actions/cache@v1
5347
with:
5448
path: ~/.npm
@@ -113,12 +107,6 @@ jobs:
113107
steps:
114108
- uses: actions/checkout@v2
115109

116-
- uses: actions/setup-java@v1
117-
with:
118-
java-version: '9.0.4'
119-
java-package: jdk
120-
architecture: x64
121-
122110
- name: Use Node.js
123111
uses: actions/setup-node@v1
124112
with:
@@ -160,12 +148,6 @@ jobs:
160148
with:
161149
token: ${{ secrets.GH_TOKEN }}
162150

163-
- uses: actions/setup-java@v1
164-
with:
165-
java-version: '9.0.4'
166-
java-package: jdk
167-
architecture: x64
168-
169151
- name: Semantic Release
170152
uses: cycjimmy/[email protected]
171153
id: semantic

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:13-alpine
33
WORKDIR /app
44
COPY . .
55

6-
RUN apk add --no-cache --virtual .build-deps alpine-sdk python git
6+
RUN apk add --no-cache --virtual .build-deps alpine-sdk python git openjdk8-jre
77
RUN echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env
88
RUN npm config set unsafe-perm true && npm install --unsafe-perm && npm run build --unsafe-perm && npm prune --production
99
RUN apk del .build-deps

0 commit comments

Comments
 (0)