fix ARG in Dockerfile

This commit is contained in:
Ahmad Saleem Z
2023-06-11 11:23:45 +02:00
committed by Thomas Krijnen
parent 975b1c444c
commit 4fe896a3b6
2 changed files with 10 additions and 6 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
# Dockerfile for Running AWS Lambda Function with Python and IfcOpenShell
# Set the location of your Lambda function code
ARG FUNCTION_DIR="/var/task"
# Base image: Python 3.9 from AWS's public container registry
FROM public.ecr.aws/docker/library/python:3.9 AS build
# Set the location of your Lambda function code
ARG FUNCTION_DIR="/var/task"
# Install necessary packages
RUN apt-get -y update && apt-get -y install unzip curl
@@ -13,7 +13,7 @@ RUN apt-get -y update && apt-get -y install unzip curl
RUN pip install --target ${FUNCTION_DIR} awslambdaric
# Set the IfcOpenShell build version (check available builds at: https://blenderbim.org/docs-python/ifcopenshell-python/installation.html)
ARG IFC_OPENSHELL_BUILD="v0.7.0-476ab50"
ARG IFC_OPENSHELL_BUILD="39-v0.7.0-476ab50"
# Download and extract IfcOpenShell
RUN curl https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-${IFC_OPENSHELL_BUILD}-linux64.zip -O && \