forked from rapidpro/mailroom
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cadf07d
commit b4323fb
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM golang:1.12.9-alpine3.9 | ||
|
||
WORKDIR /app | ||
|
||
RUN apk update \ | ||
&& apk add --virtual build-deps gcc git \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
RUN addgroup -S golang \ | ||
&& adduser -S -G golang golang | ||
|
||
COPY . . | ||
|
||
RUN go build ./cmd/... | ||
RUN chmod +x mailroom | ||
RUN chown -R golang /app | ||
|
||
USER golang | ||
|
||
EXPOSE 80 | ||
ENTRYPOINT ["./mailroom"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- 8080:80 |