Unverified Commit 54c93bbc authored by Fedor Batonogov's avatar Fedor Batonogov Committed by GitHub
Browse files

Release 3.1.0 (#13)

### [3.1.0] - 08.03.2023

- Linux container now uses Python base image
- Updated Pyintaller 5.8.0 -> 5.9.0
- Updated Python 3.11.2 -> 3.11.3
parent e105454a
Loading
Loading
Loading
Loading
+8 −46
Original line number Diff line number Diff line
FROM ubuntu:22.04
FROM python:3.11.3
SHELL ["/bin/bash", "-i", "-c"]

LABEL maintainer="f.batonogov@yandex.ru"

ARG PYTHON_VERSION=3.11.2
ARG PYINSTALLER_VERSION=5.8.0
ARG PYINSTALLER_VERSION=5.9.0

ENV PYPI_URL=https://pypi.python.org/
ENV PYPI_INDEX_URL=https://pypi.python.org/simple

RUN \
    set -x \
    # update system
    && apt-get update \
    # install requirements
    && apt-get install -y --no-install-recommends \
        build-essential \
        ca-certificates \
        curl \
        wget \
        git \
        libbz2-dev \
        libreadline-dev \
        libsqlite3-dev \
        libssl-dev \
        zlib1g-dev \
        libffi-dev \
        # optional libraries
        libgdbm-dev \
        libgdbm6 \
        uuid-dev \
        # upx
        upx \
        # lzma & xz-utils
        liblzma-dev \
        xz-utils

# install python
RUN mkdir python \
    && cd python \
    && wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz \
    && tar xf Python-${PYTHON_VERSION}.tar.xz \
    && rm Python-${PYTHON_VERSION}.tar.xz \
    && cd Python-${PYTHON_VERSION} \
    && ./configure --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" \
    && make \
    && make install

# install pyinstaller
RUN pip3 install pyinstaller==$PYINSTALLER_VERSION

COPY entrypoint-linux.sh /entrypoint.sh

RUN mkdir /src/ && \
    chmod +x /entrypoint.sh
RUN apt update \
    && apt install -y --no-install-recommends \
        upx \
    && pip3 install pyinstaller==$PYINSTALLER_VERSION \
    && mkdir /src/ \
    && chmod +x /entrypoint.sh

VOLUME /src/
WORKDIR /src/
+2 −2
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@ LABEL maintainer="f.batonogov@yandex.ru"
ENV DEBIAN_FRONTEND noninteractive

ARG WINE_VERSION=winehq-stable
ARG PYTHON_VERSION=3.11.2
ARG PYINSTALLER_VERSION=5.8.0
ARG PYTHON_VERSION=3.11.3
ARG PYINSTALLER_VERSION=5.9.0

# we need wine for this all to work, so we'll use the PPA
RUN set -x \
+16 −8
Original line number Diff line number Diff line
@@ -7,11 +7,11 @@
`batonogov/pyinstaller-linux` or `batonogov/pyinstaller-windows` both have few tags:

| TAG                    | Python version | Pyinstaller version |
| --------------------- | -------------- | ------------------- |
| `:latest` or `:3.0.2` | 3.11.2         | 5.8.0               |
| ---------------------- | -------------- | ------------------- |
| `:latest`/`:3.1.0`     | 3.11.3         | 5.9.0               |
| `:python-3.11`/`:3.0.2`| 3.11.2         | 5.8.0               |
| `:3.0.1`               | 3.11.1         | 5.7.0               |
| `:python-3.10`         | 3.10.10        | 5.7.0               |
| `:dev`                | See dev branch | See dev branch      |

## Usage

@@ -55,7 +55,7 @@ will generate a `spec` file for `your-script.py` in your current working directo

### How do I change the PyInstaller version used?

Add `pyinstaller=5.7.0` to your `requirements.txt`.
Add `pyinstaller==5.8.0` to your `requirements.txt`.

### Is it possible to use a package mirror?

@@ -63,12 +63,20 @@ Yes, by supplying the `PYPI_URL` and `PYPI_INDEX_URL` environment variables that

## Known Issues

None
[Outdated Microsoft C++ Build Tools](https://github.com/batonogov/docker-pyinstaller/issues/11)

## History

### 2023

Now release information will be [here](https://github.com/batonogov/docker-pyinstaller/releases).

### [3.1.0] - 08.03.2023

- Linux container now uses Python base image
- Updated Pyintaller 5.8.0 -> 5.9.0
- Updated Python 3.11.2 -> 3.11.3

#### [3.0.2] - 13.02.2023

- Updated Python 3.11.1 -> 3.11.2
+2 −2
Original line number Diff line number Diff line
@@ -4,6 +4,6 @@ if [ -z $1 ];
then
    echo "Enter dockerfile name"
else
    docker build -f $1 -t test_image . && \
    docker run -v "$(pwd)/test:/src/" test_image "pyinstaller main.py --onefile"
    docker build -f $1 -t pyinstaller_test . && \
    docker run -v "$(pwd)/test:/src/" pyinstaller_test "pyinstaller main.py --onefile"
fi
+1 −1
Original line number Diff line number Diff line
requests==2.28.1
requests==2.28.2
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

Loading