Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv architecture builds into dev #5

Merged
merged 6 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/riscv64
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile
provenance: false
provenance: false
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.9.9-slim
FROM debian:experimental

ENV LANG C.UTF-8

Expand All @@ -25,6 +25,7 @@ RUN set -eux; \
ca-certificates \
netbase \
tzdata \
gcc g++ python3 python3-pip python3-full python3-dev \
; \
rm -rf /var/lib/apt/lists/*
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime; \
Expand All @@ -34,13 +35,14 @@ RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime; \
RUN apt-get update && apt-get install --no-install-recommends \
apt-transport-https ca-certificates poppler-utils qpdf \
libfile-mimeinfo-perl libimage-exiftool-perl ghostscript \
libsecret-1-0 zlib1g-dev libjpeg-dev ffmpeg libmagic1 python3-magic \
libmagickwand-dev imagemagick -y && rm -rf /var/lib/apt/lists/*
libsecret-1-0 zlib1g-dev libjpeg-dev ffmpeg python3-magic \
libmagickwand-dev imagemagick -y \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /opt/eulixspace-filepreview

COPY . /opt/eulixspace-filepreview

RUN pip install -r /opt/eulixspace-filepreview/requirements.txt
RUN pip3 install -r /opt/eulixspace-filepreview/requirements.txt --break-system-packages

ENTRYPOINT ["python","main.py"]
ENTRYPOINT ["python3","main.py"]
Loading