Skip to content

Commit

Permalink
Fix up dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Aug 28, 2024
1 parent 57ad725 commit 150ee06
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@ RUN apk add make git bash build-base libc-dev binutils-gold curl
ENV GOPATH=/go
ENV PATH="/go/bin:${PATH}"

WORKDIR /go/src/github.com/bmeg/grip-graphql
ADD ./ /go/src/github.com/bmeg/grip-graphql
WORKDIR /go/src/github.com/bmeg/grip-graphql

RUN go install github.com/bmeg/[email protected]
RUN go build --buildmode=plugin ./graphql_gen3
RUN go build --buildmode=plugin ./gen3_writer
RUN go build --buildmode=plugin ./grip-graphql-endpoint

RUN cp /go/src/github.com/bmeg/grip-graphql/mongo.yml /
RUN cp /go/src/github.com/bmeg/grip-graphql/gen3_writer.so /
RUN cp /go/src/github.com/bmeg/grip-graphql/graphql_gen3.so /
RUN cp /go/src/github.com/bmeg/grip-graphql/grip-graphql-endpoint.so /



FROM alpine
WORKDIR /data
VOLUME /data
ENV PATH="/app:${PATH}"
COPY --from=build-env /graphql_gen3.so /data/
COPY --from=build-env /gen3_writer.so /data/
COPY --from=build-env /grip-graphql-endpoint.so /data/
COPY --from=build-env /mongo.yml /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/graphql_gen3.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/gen3_writer.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/grip-graphql-endpoint.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/config/gen3.js /data/config/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/mongo.yml /data/
COPY --from=build-env /go/bin/grip /app/

0 comments on commit 150ee06

Please sign in to comment.