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 f6a4a94 commit f49f2bbCopy full SHA for f49f2bb
Dockerfile
@@ -1,5 +1,14 @@
1
FROM debian:stable-slim
2
-RUN apt-get update && apt-get install -y mingw-w64 && rm -rf /var/lib/apt/lists/*
3
-COPY CGITEST/login.c /app/login.c
4
-WORKDIR /app
5
-RUN x86_64-w64-mingw32-gcc -o login.exe login.c
+
+RUN apt-get update && apt-get install -y --no-install-recommends mingw-w64 \
+ && rm -rf /var/lib/apt/lists/*
6
+RUN useradd -m builder
7
+USER builder
8
9
+WORKDIR /home/builder/app
10
+COPY --chown=builder:builder CGITEST/login.c ./login.c
11
12
+RUN x86_64-w64-mingw32-gcc -o login.exe login.c
13
14
+HEALTHCHECK CMD test -f /home/builder/app/login.exe
0 commit comments