Skip to content

Instantly share code, notes, and snippets.

@ykashou
Last active June 25, 2025 21:07
Show Gist options
  • Save ykashou/03699ea43de5aa4302622f414d6258d2 to your computer and use it in GitHub Desktop.
Save ykashou/03699ea43de5aa4302622f414d6258d2 to your computer and use it in GitHub Desktop.
C Containerfile
FROM gcc:6 AS build-env
COPY . /app
WORKDIR /app
RUN cc hello.c -o hello
FROM gcr.io/distroless/cc
COPY --from=build-env /app /app
WORKDIR /app
CMD ["./hello"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment