Skip to content

Commit 6f0fd4f

Browse files
authored
Merge pull request #68081 from aireilly/update-dockerfile
Use ubi image only
2 parents 368a9d7 + 17b58b8 commit 6f0fd4f

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

asciibinder.Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
FROM ruby:3.1.2-alpine3.16 AS builder
1+
FROM registry.ci.openshift.org/ocp/ubi-ruby-27:8
22

3-
RUN apk update && apk add --virtual build-dependencies build-base
3+
ENV LANG=en_US.UTF-8
44

5-
RUN gem install listen ascii_binder
5+
USER root
66

7-
FROM ruby:3.1.2-alpine3.16
7+
RUN gem install listen ascii_binder && yum clean all
88

9-
COPY --from=builder /usr/local/bundle /usr/local/bundle
10-
11-
RUN apk add --update --no-cache diffutils findutils git
9+
WORKDIR /src
1210

1311
RUN git config --system --add safe.directory '*'
1412

15-
WORKDIR /src
16-
17-
CMD ["/bin/sh"]
13+
CMD ["/bin/bash"]

asciidoctor.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
1+
FROM registry.ci.openshift.org/ocp/ubi-minimal:8
22

33
WORKDIR /src
44

@@ -8,4 +8,4 @@ RUN gem install asciidoctor asciidoctor-diagram
88

99
RUN git config --system --add safe.directory '*'
1010

11-
CMD ["/bin/bash"]
11+
CMD ["/bin/bash"]

python-tools.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
1+
FROM registry.ci.openshift.org/ocp/ubi-minimal:8
22

33
WORKDIR /src
44

55
RUN microdnf install -y git python39 python39-pip which && microdnf clean all && rm -rf /var/cache/yum
66

77
COPY ./aura.tar.gz /src
88

9-
RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel && pip install --no-cache-dir /src/aura.tar.gz
9+
RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel pyyaml && pip install --no-cache-dir /src/aura.tar.gz
1010

1111
RUN git config --system --add safe.directory '*'
1212

13-
CMD ["/bin/bash"]
13+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)