This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/tests/core-concepts/container-images/plans/with-dockerfile.cue
Helder Correia a48d093fb8
Add documentation for building container images
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-09 16:10:17 -01:00

25 lines
454 B
CUE

package main
import (
"dagger.io/dagger"
)
dagger.#Plan & {
client: filesystem: ".": read: contents: dagger.#FS
actions: build: dagger.#Dockerfile & {
// This is the context.
source: client.filesystem.".".read.contents
// Default is to look for a Dockerfile in the context,
// but let's declare it here.
contents: #"""
FROM python:3.9
COPY . /app
RUN pip install -r /app/requirements.txt
CMD python /app/app.py
"""#
}
}