Repository begleitend zum Blockseminar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 410B

123456789101112
  1. # use alpine as base image
  2. FROM alpine as build-env
  3. # install build-base meta package inside build-env container
  4. RUN apk add --no-cache build-base
  5. # change directory to /app
  6. WORKDIR /app
  7. # copy all files from current directory inside the build-env container
  8. COPY . .
  9. # Compile the source code and generate hello binary executable file
  10. RUN gcc -o hello helloDocker.c
  11. # run the program
  12. ENTRYPOINT ["/app/hello"]