File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- 3.10
1
+ 3.11
Original file line number Diff line number Diff line change 3
3
ARG APP_NAME=pyth-observer
4
4
ARG APP_PACKAGE=pyth_observer
5
5
ARG APP_PATH=/opt/$APP_NAME
6
- ARG PYTHON_VERSION=3.10.4
6
+ ARG PYTHON_VERSION=3.11
7
7
ARG POETRY_VERSION=2.1.4
8
8
9
9
#
10
10
# Stage: base
11
11
#
12
12
13
- FROM python:$PYTHON_VERSION as base
13
+ FROM python:$PYTHON_VERSION AS base
14
14
15
15
ARG APP_NAME
16
16
ARG APP_PATH
27
27
POETRY_NO_INTERACTION=1
28
28
29
29
# Install Poetry - respects $POETRY_VERSION & $POETRY_HOME
30
- RUN curl -sSL https://install.python-poetry.org | python
30
+ RUN curl -sSL https://install.python-poetry.org | python - --version $POETRY_VERSION
31
31
ENV PATH="$POETRY_HOME/bin:$PATH"
32
+ RUN which poetry && poetry --version
32
33
33
34
WORKDIR $APP_PATH
34
35
COPY . .
@@ -37,7 +38,7 @@ COPY . .
37
38
# Stage: development
38
39
#
39
40
40
- FROM base as development
41
+ FROM base AS development
41
42
42
43
ARG APP_NAME
43
44
ARG APP_PATH
@@ -54,7 +55,7 @@ CMD ["$APP_NAME"]
54
55
# Stage: build
55
56
#
56
57
57
- FROM base as build
58
+ FROM base AS build
58
59
59
60
ARG APP_NAME
60
61
ARG APP_PATH
@@ -67,7 +68,7 @@ RUN poetry export --format requirements.txt --output constraints.txt --without-h
67
68
# Stage: production
68
69
#
69
70
70
- FROM python:$PYTHON_VERSION as production
71
+ FROM python:$PYTHON_VERSION AS production
71
72
72
73
ARG APP_NAME
73
74
ARG APP_PATH
Original file line number Diff line number Diff line change 1
1
[tool .mypy ]
2
- python_version = " 3.10 "
2
+ python_version = " 3.11 "
3
3
ignore_missing_imports = true
4
4
5
5
[tool .poetry ]
@@ -48,3 +48,6 @@ pyth-observer = "pyth_observer.cli:run"
48
48
[build-system ]
49
49
requires = [" poetry-core" ]
50
50
build-backend = " poetry.core.masonry.api"
51
+
52
+ [tool .poetry .requires-plugins ]
53
+ poetry-plugin-export = " >=1.8"
You can’t perform that action at this time.
0 commit comments