A service meant to handle fitbit data events and store them in an elasticsearch index
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
571 B

  1. FROM golang:1.11-alpine3.8 AS builder
  2. MAINTAINER Noah Pederson
  3. EXPOSE 8008
  4. # Install some dependencies needed to build the project
  5. RUN apk add bash ca-certificates git gcc g++ libc-dev
  6. FROM builder AS build
  7. RUN mkdir /build
  8. COPY . /build
  9. WORKDIR /build/cmd/worker
  10. ENV GO111MODULES on
  11. RUN go mod download
  12. RUN go build
  13. FROM alpine:3.8 AS runner
  14. RUN mkdir /app
  15. RUN addgroup -g 1000 app && \
  16. adduser -D -h /app -u 1000 -G app app
  17. RUN chown app:app /app
  18. USER app
  19. WORKDIR /app
  20. COPY --from=build /build/cmd/worker/worker /app/worker
  21. ENTRYPOINT [ "./worker" ]