Skip to content

Commit

Permalink
Merge pull request #4 from tigerteufel85/boggy-3/docker-hub-images
Browse files Browse the repository at this point in the history
Updated Dockerfile and documentation for docker hub
  • Loading branch information
tigerteufel85 authored Feb 15, 2020
2 parents b9c2ee2 + 7b95fb8 commit da214ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM golang:latest as builder
FROM golang:1.11-alpine as builder
ENV GO111MODULE=on
WORKDIR /boggy/
COPY . ./
RUN make dep \
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=readonly -a -o /app .

FROM debian:stable-slim
RUN apt-get update -y && \
apt-get install ca-certificates netcat strace wget -y
RUN update-ca-certificates
RUN mkdir -p images
RUN apk add git
RUN CGO_ENABLED=0 go build -o /app boggy.go

FROM alpine:latest as alpine
RUN apk add --no-cache git ca-certificates tzdata
RUN mkdir -p config
COPY --from=builder app .

CMD ["./app"]
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
bot:
image: boggy:latest
image: tigerteufel/boggy:latest
build: .
restart: always
volumes:
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Boggy is a slack bot primarily meant to improve the workflow of QA in developmen
- install Docker incl. docker-compose
- clone this repo or at least fetch the docker-compose.yaml
- create a config.yaml under config following the config.example.yaml
- `make docker-build` and `docker-compose up`
- `docker-compose up`

**Advanced** (when planning working on the bot core)
- install go (at least 1.11)
Expand Down

0 comments on commit da214ed

Please sign in to comment.