1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

docker build updates

This commit is contained in:
Kyle Spearrin
2018-07-18 15:21:51 -04:00
parent 0a86709440
commit 5131ebb9c9
5 changed files with 7 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
*
!dist/*
!build/*
!entrypoint.sh

View File

@@ -10,7 +10,7 @@ RUN apt-get update \
ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app
EXPOSE 5000
COPY ./dist .
COPY ./build .
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh

View File

@@ -4,9 +4,9 @@ echo "`n# Building Web"
echo "`nBuilding app"
echo "npm version $(npm --version)"
echo "gulp version $(gulp --version)"
npm install
gulp dist:selfHosted
npm run sub:update
npm run dist:selfhost
echo "`nBuilding docker image"
docker --version

View File

@@ -22,9 +22,9 @@ else
echo ""
echo "Building app"
echo "npm version $(npm --version)"
echo "gulp version $(gulp --version)"
npm install
gulp dist:selfHosted
npm run sub:update
npm run dist:selfhost
echo ""
echo "Building docker image"

View File

@@ -15,6 +15,7 @@
"build:selfhost:prod": "gulp build && cross-env SELF_HOST=true NODE_ENV=production webpack --config webpack.config.js",
"build:selfhost:prod:watch": "gulp build && cross-env SELF_HOST=true NODE_ENV=production webpack-serve --config webpack.config.js",
"dist": "npm run build:prod",
"dist:selfhost": "npm run build:selfhost:prod",
"deploy": "npm run build:prod",
"deploy:preview": "npm run dist && gh-pages -d build -r git@github.com:kspearrin/web-preview.git",
"lint": "tslint src/**/*.ts || true",