Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mailslurper/mailslurper
Browse files Browse the repository at this point in the history
  • Loading branch information
adampresley committed Aug 3, 2023
2 parents 8b26e69 + e5d275e commit 068acff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:alpine as builder
FROM golang:1.18.1-alpine3.15 as builder

LABEL maintainer="[email protected]"

RUN apk --no-cache add git libc-dev gcc
RUN go get github.com/mjibson/esc
RUN go install github.com/mjibson/esc@latest # TODO: Consider using native file embedding

COPY . /go/src/github.com/mailslurper/mailslurper
WORKDIR /go/src/github.com/mailslurper/mailslurper/cmd/mailslurper
Expand All @@ -12,7 +12,7 @@ RUN go get
RUN go generate
RUN go build

FROM alpine:3.6
FROM alpine:3.15

RUN apk add --no-cache ca-certificates \
&& echo -e '{\n\
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ $ go generate
$ go build
```

Quickstart With Docker
----------------------

```bash
# Build container image (adjust repo location as necessary)
docker build -t mailslurper 'https://github.com/mailslurper/mailslurper#master'
# Run a temporary container. Note that upon shutdown, all stored messages will be lost when using this config.
docker run -it --rm --name mailslurper -p 8080:8080 -p 8085:8085 -p 2500:2500 mailslurper
```

Library and Framework Credits
-----------------------------
This application uses a lot of great open source libraries.
Expand All @@ -44,7 +54,7 @@ This application uses a lot of great open source libraries.
* [Font Awesome](http://fortawesome.github.io/Font-Awesome/) - Fonts under OFL License, CSS under MIT license
* [GoUUID](https://github.com/nu7hatch/gouuid) - MIT
* [go-cache](https://github.com/patrickmn/go-cache) - MIT
* [go-mssqldb](https://github.com/denisenkom/go-mssqldb)
* [go-mssqldb](https://github.com/denisenkom/go-mssqldb) - BSD 3-Clause
* [Go-MySQL-Driver](https://github.com/go-sql-driver/mysql) - Mozilla Public License Version 2.0
* [go-sqlite3](https://github.com/mattn/go-sqlite3) - MIT
* [Handlebars](http://handlebarsjs.com) - MIT
Expand Down

0 comments on commit 068acff

Please sign in to comment.