mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
docker build updates
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
*
|
*
|
||||||
!dist/*
|
!build/*
|
||||||
!entrypoint.sh
|
!entrypoint.sh
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ RUN apt-get update \
|
|||||||
ENV ASPNETCORE_URLS http://+:5000
|
ENV ASPNETCORE_URLS http://+:5000
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
COPY ./dist .
|
COPY ./build .
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ echo "`n# Building Web"
|
|||||||
|
|
||||||
echo "`nBuilding app"
|
echo "`nBuilding app"
|
||||||
echo "npm version $(npm --version)"
|
echo "npm version $(npm --version)"
|
||||||
echo "gulp version $(gulp --version)"
|
|
||||||
npm install
|
npm install
|
||||||
gulp dist:selfHosted
|
npm run sub:update
|
||||||
|
npm run dist:selfhost
|
||||||
|
|
||||||
echo "`nBuilding docker image"
|
echo "`nBuilding docker image"
|
||||||
docker --version
|
docker --version
|
||||||
|
|||||||
4
build.sh
4
build.sh
@@ -22,9 +22,9 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Building app"
|
echo "Building app"
|
||||||
echo "npm version $(npm --version)"
|
echo "npm version $(npm --version)"
|
||||||
echo "gulp version $(gulp --version)"
|
|
||||||
npm install
|
npm install
|
||||||
gulp dist:selfHosted
|
npm run sub:update
|
||||||
|
npm run dist:selfhost
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Building docker image"
|
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": "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",
|
"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": "npm run build:prod",
|
||||||
|
"dist:selfhost": "npm run build:selfhost:prod",
|
||||||
"deploy": "npm run build:prod",
|
"deploy": "npm run build:prod",
|
||||||
"deploy:preview": "npm run dist && gh-pages -d build -r git@github.com:kspearrin/web-preview.git",
|
"deploy:preview": "npm run dist && gh-pages -d build -r git@github.com:kspearrin/web-preview.git",
|
||||||
"lint": "tslint src/**/*.ts || true",
|
"lint": "tslint src/**/*.ts || true",
|
||||||
|
|||||||
Reference in New Issue
Block a user