Skip to content

Commit 98ba21b

Browse files
committed
use ubi image only
1 parent 57ced99 commit 98ba21b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

asciibinder.Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
FROM ruby:3.1.2-alpine3.16 AS builder
1+
FROM registry.access.redhat.com/ubi8/ruby-27
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:3.0.8 ascii_binder && \
8+
yum clean all
89

9-
COPY --from=builder /usr/local/bundle /usr/local/bundle
10+
LABEL url="http://www.asciibinder.org" \
11+
summary="a documentation system built on Asciidoctor" \
12+
description="Run the asciibinder container image from the local docs repo, which is mounted into the container. Pass asciibinder commands to run the build. Generated files are owned by root." \
13+
RUN="docker run -it --rm \
14+
-v `pwd`:/src:z \
15+
IMAGE"
1016

11-
RUN apk add --update --no-cache diffutils findutils git
12-
13-
RUN git config --system --add safe.directory '*'
14-
15-
WORKDIR /src
16-
17-
CMD ["/bin/sh"]
17+
WORKDIR /src

0 commit comments

Comments
 (0)