Browse Source
Merge pull request #99 from SamMousa/patch-1
Reduce image size and useless process
pull/101/head
Johannes Schickling
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
4 deletions
-
beanstalkd/Dockerfile
-
beanstalkd/README.md
|
@ -1,8 +1,7 @@ |
|
|
FROM debian:wheezy |
|
|
|
|
|
|
|
|
FROM alpine |
|
|
LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>" |
|
|
LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>" |
|
|
|
|
|
|
|
|
ADD install.sh install.sh |
|
|
|
|
|
RUN sh install.sh && rm install.sh |
|
|
|
|
|
|
|
|
RUN apk add --no-cache beanstalkd |
|
|
|
|
|
|
|
|
EXPOSE 11300 |
|
|
EXPOSE 11300 |
|
|
CMD ["beanstalkd", "-p", "11300"] |
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/beanstalkd"] |
|
@ -8,3 +8,7 @@ Lightweight image of the latest beanstalkd version |
|
|
$ docker run -d -p 11300:11300 schickling/beanstalkd |
|
|
$ docker run -d -p 11300:11300 schickling/beanstalkd |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Add configuration parameters like this: |
|
|
|
|
|
```sh |
|
|
|
|
|
$ docker run -d -p 11300:11300 schickling/beanstalkd -b /some/dir |
|
|
|
|
|
``` |