Skip to content

Commit a9e0bf1

Browse files
committed
Cleanup the pythong-echo-server Dockerfile and log progress when building
1 parent 7d50f22 commit a9e0bf1

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

applications/python-echo-server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
ARG PYTHON_VERSION=3.12.4
4-
FROM python:${PYTHON_VERSION}-slim as base
4+
FROM python:${PYTHON_VERSION}-slim AS base
55

66
# Prevents Python from writing pyc files.
77
ENV PYTHONDONTWRITEBYTECODE=1
@@ -45,4 +45,4 @@ USER appuser
4545
EXPOSE 8080
4646

4747
# Run the application.
48-
CMD /app/main.py
48+
CMD ["/app/main.py"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0
1+
v1.0.1

scripts/build_image.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ app_name=$(basename $arg)
4646

4747
# build the docker image
4848
docker build -t $app_name:$version -t $app_name:latest $arg
49+
50+
echo " "
51+
echo "Docker image $app_name:$version and $app_name:latest built successfully"
52+
53+
echo "Loading the image into minikube, :$version"
54+
minikube image load $app_name:$version
55+
56+
echo "Loading the image into minikube, :latest"
4957
minikube image load $app_name:latest
58+
59+
echo "Image loaded successfully"

0 commit comments

Comments
 (0)