Skip to content

Commit e719211

Browse files
committed
Fix docker image build
1 parent 19ac0ca commit e719211

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
name: Build Docker image
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Build
20+
uses: docker/build-push-action@v5
21+
with:
22+
push: false

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ ENV DEBIAN_FRONTEND=noninteractive
66

77
RUN apt update && apt install -y ca-certificates
88
RUN sed -i 's/archive.ubuntu.com/mirror.yandex.ru/g' /etc/apt/sources.list
9+
RUN mkdir -p /use/share/binfmts
10+
RUN apt update && apt install -y --no-install-recommends openjdk-11-jre-headless
911

10-
RUN apt update -qq -o Acquire::AllowInsecureRepositories=true && apt install -y --no-install-recommends --allow-unauthenticated \
12+
RUN apt update && apt install -y --no-install-recommends \
1113
openjdk-8-jdk maven postgresql-client && \
1214
apt remove -y openjdk-11-jre-headless
1315

0 commit comments

Comments
 (0)