Skip to content

Commit f943e5e

Browse files
committed
Docker: auto accept microdnf
1 parent 49e314f commit f943e5e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG NEXUS_VERSION=3.78.1-java17-ubi
22

3-
FROM maven:3.9.0 as builder
3+
FROM maven:3.9.0 AS builder
44

55
# Blobstores
66
# RUN mvn -U org.apache.maven.plugins:maven-dependency-plugin:3.0.1:copy -Dartifact=org.sonatype.nexus.plugins:nexus-blobstore-google-cloud:0.20.0 -DoutputDirectory=/nexus
@@ -18,7 +18,7 @@ FROM sonatype/nexus3:$NEXUS_VERSION
1818

1919
USER root
2020

21-
RUN microdnf install util-linux && \
21+
RUN microdnf install -y util-linux && \
2222
microdnf clean all
2323

2424
COPY entrypoint.sh /entrypoint.sh

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ NEXUS_VERSION ?= 3.78.1-java17-ubi
22

33
.PHONY: build
44
build:
5-
docker build --build-arg NEXUS_VERSION=${NEXUS_VERSION} -t dockette/nexus .
5+
docker buildx \
6+
build \
7+
--build-arg NEXUS_VERSION=${NEXUS_VERSION} \
8+
--platform linux/amd64 \
9+
-t dockette/nexus \
10+
.
611

712
.PHONY: run
813
run:

0 commit comments

Comments
 (0)