Create a zip file necessary as a AWS Layer for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python_aws_layer/Dockerfile

12 lines
280 B

1 year ago
FROM amd64/python:3.7.17-bookworm
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apt update
RUN apt install -y zip
RUN mkdir -p ./python
RUN pip install --no-cache-dir -r requirements.txt -t python/
RUN zip -r python_layer.zip python
# ENTRYPOINT ["tail", "-f", "/dev/null"]