Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfile for Docker support #31

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:3.9.6
LABEL maintainer="Bryan CS <@iambryancs>"

RUN apk add --update perl curl perl-net-ssleay

RUN curl -O https://jetmore.org/john/code/swaks/files/swaks-20201014.0/swaks

RUN chmod +x ./swaks

ENTRYPOINT ["./swaks"]

CMD ["--help"]
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ See the [installation page][installation_page] for details on installing in mult

There is also a [versions page][versions_page] which lists every released version of Swaks, complete with changelogs and download links.

## Docker

Usage:
```
docker run --rm -ti bryancs/swaks [OPTIONS]
```

Example:
```
# test
docker run --rm -ti bryancs/swaks \
-f [email protected] \
-t [email protected] \
-s localhost

# help
docker run --rm bryancs/swaks --help
```

## Documentation

The reference documentation from the latest release, which includes quick-start examples, is available as [plain text][plain_doc] and [rendered][rendered_doc]. The documentation from each release is available from the [versions page][versions_page]. There is also an [Occasionally Asked Questions][oaq] document.
Expand Down