Skip to content

Commit

Permalink
Fix Docker build, use python base image and install Bazel ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett committed Aug 27, 2022
1 parent 310bcc6 commit d20dcfe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
FROM gcr.io/cloud-marketplace-containers/google/bazel:3.5.0 AS builder
FROM python:3.10-bullseye AS builder

RUN apt-get update && apt-get install -y apt-transport-https curl gnupg \
&& curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >/usr/share/keyrings/bazel-archive-keyring.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& apt-get update && apt-get install -y bazel \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /wgkex

COPY . ./
COPY BUILD WORKSPACE requirements.txt ./
COPY wgkex ./wgkex

RUN ["bazel", "build", "//wgkex/broker:app"]
RUN ["bazel", "build", "//wgkex/worker:app"]
Expand Down

0 comments on commit d20dcfe

Please sign in to comment.