Made build scripts work regardless of cwd

This commit is contained in:
Kenneth Bruen 2021-05-21 01:00:03 +03:00
parent 8ae0c959f3
commit 91fc96c0c7
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1
4 changed files with 7 additions and 7 deletions

View file

@ -28,11 +28,11 @@ COPY --from=tdlib /tdlib /tdlib/
The files used to build the images are located in the [GitHub repository](https://github.com/dancojocaru2000/tdlib-docker).
To build an image, enter the directory of either `alpine`, `debian` or `ubuntu` and run one of the following commands:
To build an image, run one of the following commands:
- `env ALPINE_VERSION=3 ./build.sh 1.7.0`
- `env DEBIAN_VERSION=buster-slim ./build.sh 1.7.0`
- `env UBUNTU_VERSION=focal ./build.sh 1.7.0`
- `env ALPINE_VERSION=3 alpine/build.sh 1.7.0`
- `env DEBIAN_VERSION=buster-slim debian/build.sh 1.7.0`
- `env UBUNTU_VERSION=focal ubuntu/build.sh 1.7.0`
The `*_VERSION` environment variable selects which Docker image version to base the build on.

View file

@ -13,4 +13,4 @@ else
export TDLIB_VER="1.7.0"
fi
docker build -t "tdlib:$TDLIB_VER-alpine-$ALPINE_VERSION" --build-arg TDLIB_VER --build-arg ALPINE_VERSION .
docker build -t "tdlib:$TDLIB_VER-alpine-$ALPINE_VERSION" --build-arg TDLIB_VER --build-arg ALPINE_VERSION $(dirname $0)

2
debian/build.sh vendored
View file

@ -13,4 +13,4 @@ else
export TDLIB_VER="1.7.0"
fi
docker build -t "tdlib:$TDLIB_VER-$DEBIAN_VERSION" --build-arg TDLIB_VER --build-arg DEBIAN_VERSION .
docker build -t "tdlib:$TDLIB_VER-$DEBIAN_VERSION" --build-arg TDLIB_VER --build-arg DEBIAN_VERSION $(dirname $0)

View file

@ -13,4 +13,4 @@ else
export TDLIB_VER="1.7.0"
fi
docker build -t "tdlib:$TDLIB_VER-$UBUNTU_VERSION" --build-arg TDLIB_VER --build-arg UBUNTU_VERSION .
docker build -t "tdlib:$TDLIB_VER-$UBUNTU_VERSION" --build-arg TDLIB_VER --build-arg UBUNTU_VERSION $(dirname $0)