mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-02-19 21:54:41 +00:00
dockerify
This commit is contained in:
15
build_docker
Executable file
15
build_docker
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
if [[ -z "$1" ]]
|
||||
then
|
||||
KEYROOT=$HOME
|
||||
else
|
||||
KEYROOT=$1
|
||||
fi
|
||||
|
||||
gem install ejson
|
||||
|
||||
ejson --keydir=$KEYROOT/.ejson decrypt config/config.production.ejson > config.json
|
||||
|
||||
docker build -t koodiklinikka.fi-api .
|
||||
|
||||
rm -rf config.json
|
||||
Reference in New Issue
Block a user