File tree 3 files changed +516
-15
lines changed
3 files changed +516
-15
lines changed Original file line number Diff line number Diff line change 31
31
type=semver,pattern={{version}}
32
32
type=sha
33
33
34
+ - name : Set up QEMU
35
+ uses : docker/setup-qemu-action@v2
36
+
34
37
- name : Set up Docker Buildx
35
38
uses : docker/setup-buildx-action@v2
36
39
45
48
uses : docker/build-push-action@v4
46
49
with :
47
50
context : .
51
+ provenance : false
48
52
push : ${{ github.event_name != 'pull_request' }}
49
- platforms : linux/amd64,linux/arm64
53
+ platforms : linux/amd64,linux/arm64/v8
50
54
tags : ${{ steps.meta.outputs.tags }}
51
55
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1
1
FROM python:3.10-slim
2
2
3
- ENV PYTHONFAULTHANDLER=1 \
4
- PYTHONUNBUFFERED=1 \
5
- PYTHONHASHSEED=random \
6
- PIP_NO_CACHE_DIR=off \
7
- PIP_DISABLE_PIP_VERSION_CHECK=on \
8
- PIP_DEFAULT_TIMEOUT=100 \
9
- POETRY_VERSION=1.4.2 \
10
- PYTHONPATH="${PYTHONPATH}:/app"
11
-
12
- # Install poetry
13
- RUN pip install "poetry==$POETRY_VERSION"
14
3
15
4
WORKDIR /app/demo
16
5
17
6
# Install deps
18
- COPY poetry.lock pyproject.toml ./
19
- RUN poetry config virtualenvs.create false \
20
- && poetry install --no-interaction --no-ansi
7
+ COPY requirements.txt .
8
+ RUN pip install -r requirements.txt
21
9
22
10
# Copy source code
23
11
COPY demo/ /app/demo/
24
12
13
+ ENV PYTHONPATH="${PYTHONPATH}:/app"
14
+
25
15
ENTRYPOINT [ "python3" , "/app/demo/app.py" ]
You can’t perform that action at this time.
0 commit comments