We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 026dfd8 commit 8f92211Copy full SHA for 8f92211
frameworks/Zig/zzz/zzz.dockerfile
@@ -1,9 +1,7 @@
1
FROM debian:12-slim AS build
2
3
-# Set a non-root user for added security
4
RUN useradd -m ziguser
5
6
-# Install dependencies (update to latest secure versions)
7
RUN apt-get update && \
8
apt-get install -y --no-install-recommends \
9
wget xz-utils \
@@ -25,11 +23,9 @@ COPY src src
25
23
COPY build.zig build.zig
26
24
COPY build.zig.zon build.zig.zon
27
28
-
29
-# Switch to the non-root user
30
USER ziguser
31
32
-RUN zig build -Doptimize=ReleaseFast
+RUN zig build -Doptimize=ReleaseFast -Dcpu=native
33
RUN ls
34
35
FROM debian:12-slim
0 commit comments