aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml3
-rw-r--r--.python-version1
-rw-r--r--docker/Dockerfile6
3 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e092409..10bf121 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -63,7 +63,6 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
- python-version: '3.10'
cache: pip
- name: Install dependencies
run: pip install -q -r requirements.txt
@@ -138,8 +137,6 @@ jobs:
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- with:
- python-version: '3.10'
- name: Verify package can be installed
run: pip install -q .
- name: Install package builder
diff --git a/.python-version b/.python-version
new file mode 100644
index 0000000..d5cd4cc
--- /dev/null
+++ b/.python-version
@@ -0,0 +1 @@
+3.10.10
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 2f14976..39b9ce6 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,8 +1,8 @@
-FROM alpine:3.17 AS base
+FROM python:3.10-alpine AS base
FROM base AS build
-RUN apk add -q --no-cache gcc libffi-dev make musl-dev python3-dev py3-pip
+RUN apk add -q --no-cache gcc libffi-dev make musl-dev
COPY ["requirements.txt", "/tmp/"]
RUN pip3 install -q --no-cache-dir --target=/deps -r /tmp/requirements.txt
@@ -11,7 +11,7 @@ FROM base
LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"
-RUN apk add -q --no-cache bash git openssh-client python3 tini
+RUN apk add -q --no-cache bash git openssh-client tini
COPY --from=build ["/deps", "/deps/"]
ENV PYTHONPATH="/deps:/usr/src"