Skip to content

Commit 302bd22

Browse files
authored
fix(titiler-pgstac-api): fix destination path in titiler pgstac Dockerfile COPY command (#46)
* fix(titiler-pgstac-api): fix destination path in titiler pgstac Dockerfile COPY command * fix bug showing up in github runner CI on ubuntu images where the docker COPY command needs a trailing slash when there are multiple source files * fix python version mismatch in titiler lambda * bump aws-cdk-lib to 2.75.0 to be able to make use of python 3.10 in the lambda runtime
1 parent 5dcdd44 commit 302bd22

File tree

4 files changed

+332
-62
lines changed

4 files changed

+332
-62
lines changed

lib/titiler-pgstac-api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939

4040
this.titilerPgstacLambdaFunction = new lambda.Function(this, "lambda", {
4141
handler: "handler.handler",
42-
runtime: lambda.Runtime.PYTHON_3_8,
42+
runtime: lambda.Runtime.PYTHON_3_10,
4343
code: lambda.Code.fromDockerBuild(__dirname, {
4444
file: "runtime/Dockerfile",
4545
buildArgs: { PYTHON_VERSION: '3.10' },

lib/titiler-pgstac-api/runtime/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ RUN find /asset -type f -name '*.py' -print0 | xargs -0 rm -f
1515
RUN find /asset -type d -name 'tests' -print0 | xargs -0 rm -rf
1616
RUN rm -rdf /asset/numpy/doc/ /asset/boto3* /asset/botocore* /asset/bin /asset/geos_license /asset/Misc
1717

18-
COPY runtime/src/*.py /asset
18+
COPY runtime/src/*.py /asset/
1919

2020
CMD ["echo", "hello world"]

0 commit comments

Comments
 (0)