|
@@ -1,15 +1,21 @@
|
|
# Using official python runtime base image
|
|
# Using official python runtime base image
|
|
-FROM python:2.7-alpine
|
|
|
|
|
|
+FROM python:3.9-slim
|
|
|
|
+
|
|
|
|
+# add curl for healthcheck
|
|
|
|
+RUN apt-get update \
|
|
|
|
+ && apt-get install -y --no-install-recommends \
|
|
|
|
+ curl \
|
|
|
|
+ && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
# Set the application directory
|
|
# Set the application directory
|
|
WORKDIR /app
|
|
WORKDIR /app
|
|
|
|
|
|
# Install our requirements.txt
|
|
# Install our requirements.txt
|
|
-ADD requirements.txt /app/requirements.txt
|
|
|
|
|
|
+COPY requirements.txt /app/requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
# Copy our code from the current folder to /app inside the container
|
|
# Copy our code from the current folder to /app inside the container
|
|
-ADD . /app
|
|
|
|
|
|
+COPY . .
|
|
|
|
|
|
# Make port 80 available for links and/or publish
|
|
# Make port 80 available for links and/or publish
|
|
EXPOSE 80
|
|
EXPOSE 80
|