Browse Source

Made build scripts work regardless of cwd

master
Kenneth Bruen 4 years ago
parent
commit
91fc96c0c7
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 8
      README.md
  2. 2
      alpine/build.sh
  3. 2
      debian/build.sh
  4. 2
      ubuntu/build.sh

8
README.md

@ -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). 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 ALPINE_VERSION=3 alpine/build.sh 1.7.0`
- `env DEBIAN_VERSION=buster-slim ./build.sh 1.7.0` - `env DEBIAN_VERSION=buster-slim debian/build.sh 1.7.0`
- `env UBUNTU_VERSION=focal ./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. The `*_VERSION` environment variable selects which Docker image version to base the build on.

2
alpine/build.sh

@ -13,4 +13,4 @@ else
export TDLIB_VER="1.7.0" export TDLIB_VER="1.7.0"
fi 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

@ -13,4 +13,4 @@ else
export TDLIB_VER="1.7.0" export TDLIB_VER="1.7.0"
fi 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)

2
ubuntu/build.sh

@ -13,4 +13,4 @@ else
export TDLIB_VER="1.7.0" export TDLIB_VER="1.7.0"
fi 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)

Loading…
Cancel
Save