mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
fix dockerfile and add arm for testing
This commit is contained in:
parent
9420edffec
commit
278abf1b86
13
.github/workflows/docker-publish.yml
vendored
13
.github/workflows/docker-publish.yml
vendored
@ -23,6 +23,12 @@ env:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -67,13 +73,6 @@ jobs:
|
||||
# with sigstore/fulcio when running outside of PRs.
|
||||
id-token: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
12
Dockerfile
12
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM python:3.12-alpine
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Inspired by https://github.com/Hudrolax/uc-docker-alpine/
|
||||
|
||||
@ -16,14 +16,12 @@ ENV \
|
||||
POETRY_VIRTUALENVS_IN_PROJECT=true \
|
||||
DISPLAY=:0
|
||||
|
||||
# Install build dependencies
|
||||
RUN apk update && apk upgrade && apk add --no-cache \
|
||||
xvfb \
|
||||
chromium
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 8191
|
||||
|
||||
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ./
|
||||
RUN apt update &&\
|
||||
apt install -y xvfb scrot python3-tk curl ./google-chrome-stable_current_amd64.deb &&\
|
||||
rm ./google-chrome-stable_current_amd64.deb
|
||||
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||
ENV PATH="${HOME}/.local/bin:$PATH"
|
||||
|
Loading…
x
Reference in New Issue
Block a user