Skip to content

Commit 4fe896a

Browse files
zahmadsaleemaothms
authored andcommitted
fix ARG in Dockerfile
1 parent 975b1c4 commit 4fe896a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

aws/lambda/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Dockerfile for Running AWS Lambda Function with Python and IfcOpenShell
22

3-
# Set the location of your Lambda function code
4-
ARG FUNCTION_DIR="/var/task"
5-
63
# Base image: Python 3.9 from AWS's public container registry
74
FROM public.ecr.aws/docker/library/python:3.9 AS build
85

6+
# Set the location of your Lambda function code
7+
ARG FUNCTION_DIR="/var/task"
8+
99
# Install necessary packages
1010
RUN apt-get -y update && apt-get -y install unzip curl
1111

1212
# Install AWS Lambda runtime interface client
1313
RUN pip install --target ${FUNCTION_DIR} awslambdaric
1414

1515
# Set the IfcOpenShell build version (check available builds at: https://blenderbim.org/docs-python/ifcopenshell-python/installation.html)
16-
ARG IFC_OPENSHELL_BUILD="v0.7.0-476ab50"
16+
ARG IFC_OPENSHELL_BUILD="39-v0.7.0-476ab50"
1717

1818
# Download and extract IfcOpenShell
1919
RUN curl https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-${IFC_OPENSHELL_BUILD}-linux64.zip -O && \

aws/lambda/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Dockerized AWS Lambda Function with Python and IfcOpenShell
33

44
This guide provides a Dockerfile and sample code to help you run an AWS Lambda function written in Python and utilizing IfcOpenShell library.
55

6-
> Note: This is a superficial guideline, in order to make this work for your usecase you will need a good understanding of other AWS services like SQS, S3, API Gateway etc.
7-
86
Prerequisites
97
-------------
108

@@ -42,3 +40,9 @@ Getting Started
4240
7. **Deploy to lambda**
4341

4442
This is beyond the scope of this example. Please refer to AWS documentation. Some tools that could be useful are - AWS CloudFormaton, AWS CDK, pulumi or terraform
43+
44+
45+
---------
46+
> Note: This is a superficial guide, in order to make this work for your usecase you will need a good understanding of other AWS services like SQS, S3, API Gateway etc.
47+
48+
For more information on building lambda containers refer to this [guide](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html).

0 commit comments

Comments
 (0)