authelia/scripts/authelia-scripts-build
Clement Michaud 828f565290 Bootstrap Go implementation of Authelia.
This is going to be the v4.

Expected improvements:
- More reliable due to static typing.
- Bump of performance.
- Improvement of logging.
- Authelia can be shipped as a single binary.
- Will likely work on ARM architecture.
2019-10-28 23:28:59 +01:00

20 lines
241 B
Bash
Executable File

#!/bin/bash
set -x
set -e
DIST_DIR=dist
rm -rf $DIST_DIR
mkdir -p $DIST_DIR
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o $DIST_DIR/authelia
# Build the client
pushd client
npm run build
popd
mv client/build $DIST_DIR/public_html