-
Notifications
You must be signed in to change notification settings - Fork 0
Add Dockerfile and packages #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Dockerfile
Outdated
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg && \ | ||
echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list && \ | ||
apt-get update && \ | ||
apt-get install -y azure-functions-core-tools-4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding && rm -rf /var/lib/apt/lists/*
to the end of that RUN
Dockerfile
Outdated
FROM mcr.microsoft.com/azure-functions/python:4-python3.11 | ||
LABEL maintainer="[email protected]" | ||
|
||
RUN apt update \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe combine these apt things with the apt-get below?
@@ -0,0 +1,19 @@ | |||
FROM mcr.microsoft.com/azure-functions/python:4-python3.11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's special about this base image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the base container that is actually used in azure to run functions is my understanding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs to add clis which is odd but I followed their example
Docker image for azure function tools