Skip to content

Commit

Permalink
First attempt at building in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Sep 2, 2019
1 parent a5da759 commit 16027ca
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
*Dockerfile*
*docker-compose*
node_modules
vendor
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:10-alpine

ARG NODE_ENV=production
ENV NODE_ENV=$NODE_ENV \
# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#global-npm-dependencies
NPM_CONFIG_PREFIX=/home/node/.npm-global \
PATH=$PATH:/home/node/.npm-global/bin

RUN apk --update add git less openssh && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/* && \
mkdir -p /home/node/workbench-client && \
chown node:node /home/node/workbench-client



USER node

WORKDIR /home/node/workbench-client
COPY package.json package-lock.json* ./
RUN npm i npm@latest -g && \
npm install -g bower && \
npm install --no-optional && \
npm cache clean --force

COPY . .

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baw-client
============

The AngularJS client for the bioacoustic workbench
The AngularJS client for the acoustic workbench

[![Build Status](https://travis-ci.org/QutBioacoustics/baw-client.png)](https://travis-ci.org/QutBioacoustics/baw-client) [![Dependency Status](https://gemnasium.com/QutBioacoustics/baw-client.png)](https://gemnasium.com/QutBioacoustics/baw-client) [![Code Quality](https://d3s6mut3hikguw.cloudfront.net/github/QutBioacoustics/baw-client.png)](https://codeclimate.com/github/QutBioacoustics/baw-client) [![Code Coverage](http://img.shields.io/codeclimate/coverage/github/QutBioacoustics/baw-client.svg)](https://codeclimate.com/github/QutBioacoustics/baw-client)
---
Expand All @@ -11,7 +11,7 @@ The AngularJS client for the bioacoustic workbench

Before you get started make sure you have at least version 4 or above of node.js. We also require `npm` version 3 or above.

To install project dependecies run:
To install project dependencies run:

$ npm install

Expand Down
2 changes: 2 additions & 0 deletions build_and_push.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/env pwsh

8 changes: 8 additions & 0 deletions workbench-client.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

0 comments on commit 16027ca

Please sign in to comment.