Skip to content

Commit

Permalink
Upgrade Python base image & Flask (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanthoss committed Jan 7, 2022
1 parent c5e1e3b commit 9643fda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.8-slim-buster
FROM python:3.10-slim-bullseye

RUN apt-get update && apt-get install -y \
curl \
RUN apt-get update && apt-get install -y --no-install-recommends \
curl=7.74.0-1.3+deb11u1 \
&& rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt --upgrade pip
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r /app/requirements.txt --upgrade pip

COPY main.py /app/

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 120
target-version = ['py38']
target-version = ['py310']

[flake8]
ignore = 'E203,E266,E501,W503'
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask~=1.1.4
influxdb-client~=1.23.0
Flask~=2.0.2
influxdb-client~=1.24.0
python-aqi~=0.6.1

0 comments on commit 9643fda

Please sign in to comment.