Closed spoeck closed 1 month ago
If you define following python function in your sst.config.ts, the copyFiles are missing in the built container:
const python = new sst.aws.Function("MyPythonFunction", { handler: "backend/python.handler", runtime: "python3.11", url: true, copyFiles: [ { from: "backend/src/mymodule.py", to: "backend/src/mymodule.py", }, { from: "backend/src", to: "src", }, { from: "backend/data/sample.csv", to: "sample.csv", }, ], python: { container: true, }, });
Now we copy the files defined in copyFiles into the root folder which the Dockerfile later on copies and build the python container with it.
This problem was fixed with #1091 by @walln I close my PR
If you define following python function in your sst.config.ts, the copyFiles are missing in the built container:
Now we copy the files defined in copyFiles into the root folder which the Dockerfile later on copies and build the python container with it.