quaint-piano-62770
05/10/2024, 12:34 PMsources
from a python_sources
target not added to a docker_image
target even if its added a dependency?quaint-piano-62770
05/10/2024, 12:36 PMdocker_image(
name='docker-image',
repository="my-app",
context_root="./",
dependencies=[
':source',
':files',
],
image_tags=["latest"]
)
python_sources(
name='source',
sources=[
'**/*.py',
'*.py'
],
resolve="admin-app",
)
files(
name='files',
sources=[
'requirements.txt',
'configs/*',
'data/**/*'
],
)
and the Dockerfile
has a line
COPY . /app/
The files in the files
target are copied. But the *.py
source files from the source
target are not.square-psychiatrist-19087
05/10/2024, 2:41 PMfiles.sources
to copy python files as filessquare-psychiatrist-19087
05/10/2024, 2:43 PMcurved-television-6568
05/10/2024, 2:54 PMquaint-piano-62770
05/10/2024, 2:58 PMfiles.sources
per Gregory’s suggestion for now and move on. Thanks for pointing me to the docs!square-psychiatrist-19087
05/10/2024, 3:00 PMpants package docker-image
for the images, just use COPY . .
and regular docker build .
square-psychiatrist-19087
05/10/2024, 3:01 PMquaint-piano-62770
05/10/2024, 3:04 PMsquare-psychiatrist-19087
05/10/2024, 3:07 PMquaint-piano-62770
05/10/2024, 3:13 PMsquare-psychiatrist-19087
05/10/2024, 3:28 PM