Junior — Middle
What is the name of the file or structure that defines the parameters and settings of a container in Docker?
sobes.tech AI
Answer from AI
The file that defines the parameters and settings of a container in Docker is called a Dockerfile.
The Dockerfile describes instructions for building an image: base image, copying files, installing dependencies, running commands, etc.
An example of a simple Dockerfile for a Python application:
FROM python:3.9
WORKDIR /app
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY . .
CMD ["python", "app.py"]