Skip to content

Commit 4534497

Browse files
committed
- Update Dockerfile
1 parent dcce4d0 commit 4534497

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM dannyben/alpine-ruby
22

3+
ENV BASHLY_VERSION=1.1.6
34
ENV PS1 "\n\n>> bashly \W \$ "
45
WORKDIR /app
56

67
# Install pandoc to support manpage generation (`bashly render :mandoc docs`)
78
RUN apk add --no-cache pandoc-cli
89

9-
RUN gem install bashly --version 1.1.6
10+
RUN gem install bashly --version $BASHLY_VERSION && \
11+
gem update --system
1012

1113
ENTRYPOINT ["bashly"]

docker-compose.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
bash:
33
build: .
4+
command: bash
45
<<: &default
56
entrypoint: []
67
image: dannyben/bashly
@@ -9,10 +10,7 @@ services:
910
build: .
1011
image: dannyben/bashly
1112

12-
bashly-test:
13-
<<: *default
14-
command: bashly --version
15-
1613
pandoc-test:
1714
<<: *default
18-
command: pandoc --version
15+
command: sh -c "pandoc --version | grep 'pandoc 3.1'"
16+

0 commit comments

Comments
 (0)