Skip to content

Commit bda1903

Browse files
committed
Merge branch 'dockerfile' of https://github.com/abhi18av/translate-shell into abhi18av-dockerfile
2 parents b0564ad + 2786b23 commit bda1903

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM alpine:latest
2+
MAINTAINER soimort
3+
4+
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
5+
6+
RUN apk add bash gawk curl mplayer fribidi less hunspell wget \
7+
&& wget git.io/trans \
8+
&& chmod +x ./trans \
9+
&& mv ./trans /usr/local/bin/
10+
ENTRYPOINT ["trans"]
11+
CMD ["--help"]

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ Learning without thought is labor lost, thought without learning is perilous.
4646
In order to be happy, the best way is to be loved by people.
4747
```
4848

49+
50+
### Docker version
51+
52+
To quickly try out `translate-shell` via docker you could make use of docker image like so
53+
54+
```sh
55+
docker pull soimort/translate-shell
56+
docker run -it soimort/translate-shell
57+
```
58+
59+
And you should be able to use `translate-shell` like so
60+
61+
```sh
62+
docker run -it translate-shell vorto
63+
```
64+
4965
## Prerequisites
5066

5167
### System Requirements

0 commit comments

Comments
 (0)