Browse Source

docker build updates

pull/219/head
Kyle Spearrin 8 years ago
parent
commit
5131ebb9c9
  1. 2
      .dockerignore
  2. 2
      Dockerfile
  3. 4
      build.ps1
  4. 4
      build.sh
  5. 1
      package.json

2
.dockerignore

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

2
Dockerfile

@ -10,7 +10,7 @@ RUN apt-get update \ @@ -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
build.ps1

@ -4,9 +4,9 @@ echo "`n# Building Web" @@ -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

@ -22,9 +22,9 @@ else @@ -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"

1
package.json

@ -15,6 +15,7 @@ @@ -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",

Loading…
Cancel
Save