Skip to content

Commit 7964013

Browse files
committed
update dockerfile
1 parent 7697e7e commit 7964013

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

Dockerfile

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
# Dockerfile
2-
FROM centos:8
3-
RUN dnf install git python3 python3-devel ruby rubygems -y
4-
RUN gem install asciidoctor asciidoctor-diagram
1+
FROM ruby:3.1.2-alpine3.16 AS builder
2+
3+
RUN apk update && apk add --virtual build-dependencies build-base
4+
5+
RUN gem install listen asciidoctor asciidoctor-diagram ascii_binder
6+
7+
FROM ruby:3.1.2-alpine3.16
8+
9+
COPY --from=builder /usr/local/bundle /usr/local/bundle
10+
11+
ENV PYTHONUNBUFFERED=1
12+
13+
RUN apk add --update --no-cache git bash python3 python3-dev && ln -sf python3 /usr/bin/python
14+
15+
RUN python3 -m ensurepip
16+
17+
RUN pip3 install --no-cache --upgrade pip setuptools
18+
519
COPY . $HOME/src/
6-
RUN pip3 install pyyaml /src/aura.tar.gz
20+
21+
RUN pip3 install --no-cache-dir pyyaml /src/aura.tar.gz

0 commit comments

Comments
 (0)