Skip to content

Commit

Permalink
Merge branch 'master' into merge/v5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Lima committed Jul 20, 2020
2 parents 7637ee2 + 5122d3b commit 70559e9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.14.6-alpine3.12

WORKDIR /app

RUN apk update \
&& apk add --virtual build-deps gcc git curl tar \
&& rm -rf /var/cache/apk/*

RUN addgroup -S golang \
&& adduser -S -G golang golang

COPY . .

RUN curl https://codeload.github.com/nyaruka/goflow/tar.gz/$(grep goflow go.mod | cut -d" " -f2) | tar --wildcards --strip=1 -zx "*/docs/*"

RUN go install -v ./cmd/...

EXPOSE 8000
ENTRYPOINT ["mailroom"]
10 changes: 10 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
mailroom:
image: ${DOCKER_IMAGE_NAME:-ilhasoft/mailroom}:${DOCKER_IMAGE_TAG:-latest}
build:
context: ..
dockerfile: ./docker/Dockerfile
ports:
- 8000:8000

0 comments on commit 70559e9

Please sign in to comment.