Skip to content

Commit 825b45d

Browse files
Bug fixes
1 parent dfafdbb commit 825b45d

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ RUN az config set core.login_experience_v2=off 2>/dev/null || true && \
4141
az extension add --name containerapp --only-show-errors 2>/dev/null || true && \
4242
az extension add --name front-door --only-show-errors 2>/dev/null || true
4343

44-
# Pre-install Python dependencies for faster updateContentCommand
45-
COPY requirements.txt /tmp/requirements.txt
46-
RUN --mount=type=cache,target=/home/vscode/.cache/pip \
47-
/usr/local/bin/python3.12 -m pip install --user --no-cache-dir -r /tmp/requirements.txt && \
48-
rm /tmp/requirements.txt
49-
5044
# Pre-create virtual environment template for faster virtual env setup
5145
RUN /usr/local/bin/python3.12 -m venv /tmp/venv-template && \
5246
/tmp/venv-template/bin/pip install --no-cache-dir \
@@ -77,8 +71,8 @@ HEALTHCHECK --interval=60s --timeout=5s --start-period=10s --retries=2 \
7771

7872
# Add labels for maintainability
7973
LABEL maintainer="APIM Samples Team" \
80-
description="Simplified dev container for Azure API Management samples with Codespaces prebuild optimization" \
81-
version="2.1" \
74+
description="Optimized dev container for Azure API Management samples with Codespaces prebuild support" \
75+
version="2.2" \
8276
python.version="3.12" \
8377
debian.version="bookworm" \
8478
venv.location="/workspaces/Apim-Samples/.venv"

.devcontainer/post-start-setup.sh

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
#!/bin/bash
22

33
# ------------------------------
4-
# APIM SAMPLES INSTANT VERIFecho ""
5-
echo ""
6-
echo " NEXT STEPS:"
7-
echo " -----------"
8-
echo ""
9-
echo " 1. Log in via the Azure CLI: az login"
10-
echo " 2. Start using the infrastructures and samples!"
11-
echo ""
12-
echo "============================================================================"
13-
echo -e "\n\n\n"-------------------------
4+
# APIM SAMPLES INSTANT VERIFICATION
5+
# ------------------------------
146

157
start=$(date +%s.%N)
168

@@ -84,17 +76,10 @@ echo "📋 You can minimize this panel or open a new terminal for your work."
8476
echo ""
8577
echo "🚀 Your APIM Samples environment is ready to use!"
8678
echo ""
87-
echo "🔍 This terminal shows your Codespace verification progress and logs."
88-
echo "📋 You can minimize this panel or open a new terminal for your work."
89-
echo ""
90-
echo "🚀 Your APIM Samples environment is ready to use!"
91-
echo ""
92-
echo ""
9379
echo " NEXT STEPS:"
9480
echo " -----------"
9581
echo ""
9682
echo " 1. Log in via the Azure CLI: az login"
9783
echo " 2. Start using the infrastructures and samples!"
9884
echo ""
9985
echo "============================================================================"
100-
echo -e "\n\n\n"

0 commit comments

Comments
 (0)