building an image
-
many pre-build images available (
gcc:7
,gcc:10
,python:3.9
,pandoc/latex:2.16
) -
often need to make our own though
-
need a
Dockerfile
orContainerfile
-
docker build -t my-project .
FROM alpine:3.11
RUN apk add --no-cache gcc musl-dev
WORKDIR /my-project/
COPY test.c /my-project/
RUN gcc -o test test.c
CMD /my-project/test