Create a Dockerfile in /home/user.
A Dockerfile is a text recipe to build a container image.
TASK
----
In the terminal, create the file by piping content with `tee` or use
`echo > Dockerfile`. Required content:
FROM alpine:3.19
RUN apk add --no-cache curl
CMD ["curl", "https://example.com"]
A quick way:
echo 'FROM alpine:3.19' > Dockerfile
echo 'RUN apk add --no-cache curl' >> Dockerfile
echo 'CMD ["curl", "https://example.com"]' >> Dockerfile
Pass when /home/user/Dockerfile exists and contains "FROM alpine".
Sign in to save your code and track progress across devices.