Skip to content

Commit

Permalink
bazel: Use the standard build/run protocol (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
nya3jp authored and beevee committed Jul 6, 2020
1 parent 8676273 commit 6bd7469
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dockerfiles/bazel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM icfpcontest2020/bazel:latest AS build
WORKDIR /source
FROM icfpcontest2020/bazel

WORKDIR /solution
COPY . .
RUN bazel --batch build --distdir=/bazel/dist -c opt //app:app

FROM debian:buster-20200607-slim
WORKDIR /build
COPY --from=build /source/bazel-bin/app/app .
ENTRYPOINT ["./app"]
RUN ./build.sh
ENTRYPOINT ["./run.sh"]

0 comments on commit 6bd7469

Please sign in to comment.