Add Dockerfile to build
This commit is contained in:
parent
6255f9f41b
commit
181495d07f
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
Dockerfile
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM node:13
|
||||
|
||||
ENV VERSION=no_version
|
||||
|
||||
RUN mkdir /src \
|
||||
&& chown node:node /src
|
||||
ADD --chown=node:node . /src
|
||||
WORKDIR /src
|
||||
USER node
|
||||
|
||||
ENTRYPOINT ["/src/build.sh"]
|
17
build.sh
Executable file
17
build.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
if [ ! -d $PWD/scss/srht ]; then
|
||||
git submodule update --init
|
||||
fi
|
||||
|
||||
if [ ! -d $PWD/scss/srht/srht/scss/bootstrap ]; then
|
||||
cd scss/srht
|
||||
git submodule update --init
|
||||
cd ../..
|
||||
fi
|
||||
|
||||
npm install
|
||||
npm run build:production
|
||||
tar czvf dist/receptor-${VERSION}.tar.gz dist/*
|
Loading…
Reference in New Issue
Block a user