Skip to content

Commit 265b9d9

Browse files
committed
ci: fix docker image
1 parent f41d686 commit 265b9d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- "third_party/**"
1010
- "test/**"
1111
- "*.bazel*"
12+
- "Dockerfile"
1213
- ".github/workflows/docker.yml"
1314
tags:
1415
- "v*.*.*"

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
2727

2828
COPY . .
2929

30-
# Allow rules_python to run as root
31-
RUN sed 's/python.toolchain(/python.toolchain(\nignore_root_user_error = True,/g' MODULE.bazel -i \
32-
&& bazel build //dlinear --config=opt --//tools:enable_static_build=True
30+
RUN sed 's/python.toolchain(/python.toolchain(\nignore_root_user_error = True,/g' MODULE.bazel -i
31+
RUN bazel build //dlinear --cxxopt=-O3 --cxxopt=-DNDEBUG --//tools:enable_static_build=True
3332

3433
FROM alpine:3.19.0
3534

0 commit comments

Comments
 (0)