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 1
1
# Using official python runtime base image
2
- FROM python:3.9 -slim
2
+ FROM python:3.11 -slim
3
3
4
4
# 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/*
9
8
10
9
# Set the application directory
11
- WORKDIR /app
10
+ WORKDIR /usr/local/ app
12
11
13
12
# 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
16
15
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
18
17
COPY . .
19
18
20
19
# Make port 80 available for links and/or publish
You can’t perform that action at this time.
0 commit comments