Exercises around image building and management
FROM mjmckay.jfrog.io/app-docker/myalpine:latest
WORKDIR /app
RUN wget https://raw.githubusercontent.com/mjmckay/legendary-giggle/main/helloworld.c
RUN gcc -o hello helloworld.c
CMD ["./hello"]
FROM alpine
RUN apk add --no-cache wget gcc musl-dev # buildkit
WORKDIR /app
RUN wget https://raw.githubusercontent.com/mjmckay/legendary-giggle/main/helloworld.c
RUN gcc -o hello helloworld.c
CMD ["./hello"]
FROM alpine
RUN apk add --no-cache wget gcc musl-dev # buildkit
WORKDIR /app
COPY resources/helloworld.c .
RUN gcc -o hello helloworld.c
CMD ["./hello"]
FROM [DOCKER REGISTRY]/[DOCKER REPO]/alpine
RUN apk add --no-cache wget gcc musl-dev # buildkit
WORKDIR /app
COPY resources/helloworld.c .
RUN gcc -o hello helloworld.c
CMD ["./hello"]