File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 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
1817COPY . .
1918
2019# Make port 80 available for links and/or publish
You can’t perform that action at this time.
0 commit comments