forked from alextselegidis/easyappointments-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-build.sh
More file actions
executable file
·32 lines (27 loc) · 1005 Bytes
/
docker-build.sh
File metadata and controls
executable file
·32 lines (27 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# -----------------------------------------------------------------------------
# Easy!Appointments - Online Appointment Scheduler
#
# @package EasyAppointments
# @author A.Tselegidis <alextselegidis@gmail.com>
# @copyright Copyright (c) Alex Tselegidis
# @license https://opensource.org/licenses/GPL-3.0 - GPLv3
# @link https://easyappointments.org
# -----------------------------------------------------------------------------
##
# Build a docker image for an Easy!Appointments release with local architecture
#
# This script will create a new local Docker image with the local architecture only. This is useful for testing
# or using the image locally. For multiple architectures refer to the "multi-arch-build.sh" script.
#
# Usage:
#
# ./docker-build.sh <version>
#
# Example:
#
# ./docker-build.sh 1.5.0
#
DEFAULT_VERSION=1.5.0
VERSION="${1:-$DEFAULT_VERSION}"
docker build --tag alextselegidis/easyappointments:${VERSION} --build-arg VERSION=${VERSION} .