Skip to content

Commit f9c58a0

Browse files
committed
Update vote service to python:3.11
Signed-off-by: Michael Irwin <[email protected]>
1 parent 3accda9 commit f9c58a0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

vote/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
# Using official python runtime base image
2-
FROM python:3.9-slim
2+
FROM python:3.11-slim
33

44
# add curl for healthcheck
5-
RUN apt-get update \
6-
&& apt-get install -y --no-install-recommends \
7-
curl \
8-
&& rm -rf /var/lib/apt/lists/*
5+
RUN apt-get update && \
6+
apt-get install -y --no-install-recommends curl && \
7+
rm -rf /var/lib/apt/lists/*
98

109
# Set the application directory
11-
WORKDIR /app
10+
WORKDIR /usr/local/app
1211

1312
# Install our requirements.txt
14-
COPY requirements.txt /app/requirements.txt
15-
RUN pip install -r requirements.txt
13+
COPY requirements.txt ./requirements.txt
14+
RUN pip install --no-cache-dir -r requirements.txt
1615

17-
# Copy our code from the current folder to /app inside the container
16+
# Copy our code from the current folder to the working directory inside the container
1817
COPY . .
1918

2019
# Make port 80 available for links and/or publish

0 commit comments

Comments
 (0)