Skip to content

Commit fc4edc2

Browse files
committed
update list of platforms. simplify dockerfile
1 parent 19a302e commit fc4edc2

File tree

3 files changed

+516
-15
lines changed

3 files changed

+516
-15
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
type=semver,pattern={{version}}
3232
type=sha
3333
34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v2
36+
3437
- name: Set up Docker Buildx
3538
uses: docker/setup-buildx-action@v2
3639

@@ -45,7 +48,8 @@ jobs:
4548
uses: docker/build-push-action@v4
4649
with:
4750
context: .
51+
provenance: false
4852
push: ${{ github.event_name != 'pull_request' }}
49-
platforms: linux/amd64,linux/arm64
53+
platforms: linux/amd64,linux/arm64/v8
5054
tags: ${{ steps.meta.outputs.tags }}
5155
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
FROM python:3.10-slim
22

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"
143

154
WORKDIR /app/demo
165

176
# 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
219

2210
# Copy source code
2311
COPY demo/ /app/demo/
2412

13+
ENV PYTHONPATH="${PYTHONPATH}:/app"
14+
2515
ENTRYPOINT [ "python3", "/app/demo/app.py" ]

0 commit comments

Comments
 (0)