mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-06-28 06:45:58 +00:00
add armv6 and armv7 docker support
This commit is contained in:
7
.github/workflows/docker-image.yml
vendored
7
.github/workflows/docker-image.yml
vendored
@@ -45,6 +45,9 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
# Extract metadata (tags, labels) for Docker
|
||||
# https://github.com/docker/metadata-action
|
||||
- name: Extract Docker metadata
|
||||
@@ -67,6 +70,7 @@ jobs:
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
provenance: false
|
||||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7
|
||||
|
||||
# Build and push Docker image with Buildx (don't push on PR)
|
||||
# https://github.com/docker/build-push-action
|
||||
@@ -81,4 +85,5 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
provenance: false
|
||||
provenance: false
|
||||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM python:3.11-slim-bullseye
|
||||
FROM python:3.9-slim-bullseye
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
|
||||
@@ -6,14 +6,12 @@ WORKDIR /app
|
||||
|
||||
COPY ./requirements.txt /requirements.txt
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends g++ gcc gosu && \
|
||||
pip install --no-cache-dir --upgrade -r /requirements.txt && \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends gosu g++ gcc && \
|
||||
pip install --no-cache-dir --upgrade --extra-index-url https://www.piwheels.org/simple -r /requirements.txt && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
apt-get remove -y --purge g++ gcc && apt-get autoremove -y && \
|
||||
gosu nobody true
|
||||
|
||||
COPY ./default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
groupmod -g 1000 users && \
|
||||
|
||||
Reference in New Issue
Block a user