mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
docker build updates
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
*
|
||||
!dist/*
|
||||
!build/*
|
||||
!entrypoint.sh
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
4
build.sh
4
build.sh
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user