Unverified Commit 31d2dc21 authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

Added github packages (#58)

parent f123913f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ jobs:
        uses: docker/setup-buildx-action@v2

      - name: Build and push Docker image
        if: ${{ startsWith(github.ref, 'refs/tags/*') }}
        uses: docker/build-push-action@v3
        with:
          context: .
@@ -54,7 +53,6 @@ jobs:
          labels: ${{ steps.meta.outputs.labels }}

      - name: Build and push Docker image slim
        if: ${{ startsWith(github.ref, 'refs/tags/*') }}
        uses: docker/build-push-action@v3
        with:
          context: .
+16 −4
Original line number Diff line number Diff line
@@ -17,23 +17,35 @@ If the `src` folder has a `requirements.txt` file, the packages will be installe

For example, in the folder that has your source code, `.spec` file and `requirements.txt`:

```console
```zsh
docker run -v "$(pwd):/src/" batonogov/pyinstaller-windows
```

or

```zsh
docker run -v "$(pwd):/src/" ghcr.io/batonogov/pyinstaller-windows
```

will build your PyInstaller project into `dist/`. The `.exe` file will have the same name as your `.spec` file.

```console
```zsh
docker run -v "$(pwd):/src/" batonogov/pyinstaller-linux
```

or

```zsh
docker run -v "$(pwd):/src/" ghcr.io/batonogov/pyinstaller-linux
```

will build your PyInstaller project into `dist/`. The binary will have the same name as your `.spec` file.

### How do I specify the spec file from which the executable should be build?

You'll need to pass an environment variable called `SPECFILE` with the path (relative or absoulte) to your spec file, like so:

```console
```zsh
docker run -v "$(pwd):/src/" -e SPECFILE=./main-nogui.spec batonogov/pyinstaller-linux
```

@@ -43,7 +55,7 @@ This will build the executable from the spec file `main-nogui.spec`.

You'll need to supply a custom command to Docker to install system pacakges. Something like:

```console
```zsh
docker run -v "$(pwd):/src/" --entrypoint /bin/sh batonogov/pyinstaller-linux -c "apt update -y && apt install -y wget && /entrypoint.sh"
```