-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (28 loc) · 1.15 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
# Based on the .NET Core self-contained runtime image to run bicep CLI
FROM mcr.microsoft.com/powershell:lts-ubuntu-18.04
WORKDIR /bicep
LABEL "com.github.actions.name"="Bicep Build"
LABEL "com.github.actions.description"="Build ARM templates using the bicep CLI"
LABEL "com.github.actions.icon"="copy"
LABEL "com.github.actions.color"="orange"
LABEL "repository"="http://github.com/aliencube/bicep-build-actions"
LABEL "homepage"="http://github.com/aliencube"
LABEL "maintainer"="Justin Yoo <[email protected]>"
# Install curl
RUN apt-get update && apt-get install -y \
sudo \
curl \
&& rm -rf /var/lib/apt/lists/*
# # Fetch the latest Bicep CLI binary
# RUN curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64
# https://github.com/Azure/bicep/releases/download/v0.3.255/bicep-linux-x64
# # Mark it as executable
# RUN chmod +x ./bicep
# # Add bicep to your PATH (requires admin)
# RUN sudo mv ./bicep /usr/local/bin/bicep
# # Verify you can now access the 'bicep' command
# RUN bicep --help
# # Done!
ADD entrypoint.ps1 /entrypoint.ps1
RUN chmod +x /entrypoint.ps1
ENTRYPOINT ["pwsh", "-File", "/entrypoint.ps1"]