Skip to content

Commit 8f6233b

Browse files
authored
Merge pull request #487 from DannyBen/update/docker
Update Dockerfile
2 parents dcce4d0 + 4534497 commit 8f6233b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 5 deletions
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)