James Tombleson
66c74802d9
* trying a different method to have rod find to brower on disk for docker * updated rod to find the browser on disk. This is for docker support
19 lines
439 B
Docker
19 lines
439 B
Docker
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
|
|
|
|
RUN apk --no-cache add bash
|
|
RUN apk --no-cache add libc6-compat
|
|
RUN apk --no-cache add 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" ] |