mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
docker image
This commit is contained in:
parent
53f3124345
commit
9a4669067d
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM node
|
||||
|
||||
RUN npm install http-server -g
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
COPY ./dist .
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
13
build.ps1
Normal file
13
build.ps1
Normal file
@ -0,0 +1,13 @@
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
echo "`n# Building Web"
|
||||
|
||||
echo "`nBuilding app"
|
||||
echo "npm version $(npm --version)"
|
||||
echo "gulp version $(gulp --version)"
|
||||
npm install
|
||||
gulp dist
|
||||
|
||||
echo "`nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/web $dir\.
|
16
build.sh
Normal file
16
build.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
|
||||
echo -e "\n# Building Web"
|
||||
|
||||
echo -e "\nBuilding app"
|
||||
echo -e "npm version $(npm --version)"
|
||||
echo -e "gulp version $(gulp --version)"
|
||||
npm install
|
||||
gulp dist
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/web $DIR/.
|
3
entrypoint.sh
Normal file
3
entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
http-server ./ -p 80 -d False --utc
|
Loading…
Reference in New Issue
Block a user