newsbot-api/Dockerfile

16 lines
391 B
Docker
Raw Permalink Normal View History

FROM golang:1.18.4 as build
COPY . /app
WORKDIR /app
RUN go build .
RUN go install github.com/pressly/goose/v3/cmd/goose@latest
FROM alpine:latest as app
2022-07-14 11:21:05 -07:00
RUN apk --no-cache add bash libc6-compat chromium
RUN mkdir /app && mkdir /app/migrations
COPY --from=build /app/collector /app
COPY --from=build /go/bin/goose /app
COPY ./database/migrations/ /app/migrations
CMD [ "/app/collector" ]