Skip to content

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

Merged
merged 2 commits into from
Apr 9, 2025
Merged

Add Dockerfile and packages #1

merged 2 commits into from
Apr 9, 2025

Conversation

miketypeguy
Copy link
Member

Docker image for azure function tools

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
Copy link

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 \
Copy link

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
Copy link

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?

Copy link
Member Author

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

Copy link
Member Author

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

@miketypeguy miketypeguy merged commit 95b00da into main Apr 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants