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.
 

37 lines
571 B

FROM golang:1.11-alpine3.8 AS builder
MAINTAINER Noah Pederson
EXPOSE 8008
# Install some dependencies needed to build the project
RUN apk add bash ca-certificates git gcc g++ libc-dev
FROM builder AS build
RUN mkdir /build
COPY . /build
WORKDIR /build/cmd/worker
ENV GO111MODULES on
RUN go mod download
RUN go build
FROM alpine:3.8 AS runner
RUN mkdir /app
RUN addgroup -g 1000 app && \
adduser -D -h /app -u 1000 -G app app
RUN chown app:app /app
USER app
WORKDIR /app
COPY --from=build /build/cmd/worker/worker /app/worker
ENTRYPOINT [ "./worker" ]