-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (36 loc) · 1.71 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM mcr.microsoft.com/azure-functions/python:4-python3.11
LABEL maintainer="devops@signiant.com"
# OS packages
# COPY apk.packages.list /tmp/apk.packages.list
# RUN chmod +r /tmp/apk.packages.list && \
# apt-get update && \
# apt-get -y install `cat /tmp/apk.packages.list`
RUN apt update \
&& apt install -y python3 python3-pip figlet jq zip git
# Azure CLI
COPY pip.packages.list /tmp/pip.packages.list
RUN python3 -m pip install -r /tmp/pip.packages.list && \
az bicep install
RUN apt-get update && \
apt-get install -y curl gpg && \
apt install -y lsb-release && \
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && \
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
# # Gcloud CLI for IAP tunnel
# RUN curl -sSL https://sdk.cloud.google.com | bash && \
# mv /root/google-cloud-sdk /usr/local/google-cloud-sdk
# # Packer
# RUN wget https://releases.hashicorp.com/packer/1.11.2/packer_1.11.2_linux_amd64.zip && \
# mkdir /usr/local/packer && \
# mkdir /root/goworkspace && \
# unzip packer_1.11.2_linux_amd64.zip -d /usr/local/packer && \
# rm packer_1.11.2_linux_amd64.zip && \
# /usr/local/packer/packer plugins install github.com/hashicorp/azure && \
# /usr/local/packer/packer plugins install github.com/hashicorp/googlecompute
# ENV GOROOT=/usr/lib/go
# ENV GOBIN=/usr/local/packer
# ENV GOPATH=/root/goworkspace
# ENV PATH $PATH:/usr/local/packer:/usr/local/google-cloud-sdk/bin