Skip to content

Commit

Permalink
add dockerfiles + first draft for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Herbin committed Jul 29, 2018
1 parent 3fda022 commit 257b11a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
16 changes: 16 additions & 0 deletions _provisioning/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:alpine

LABEL AUTHOR="Nelson Herbin <[email protected]>"
LABEL NAME=tricoteuses-ui
LABEL VERSION=1

RUN apk update && apk upgrade && \
apk add --no-cache git nodejs npm

RUN git clone https://framagit.org/parlement-ouvert/tricoteuses-api
WORKDIR tricoteuses-ui/

RUN npm install

CMD ["npm","start"]
EXPOSE 3000
5 changes: 5 additions & 0 deletions _provisioning/daemon/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:alpine

LABEL AUTHOR="Nelson Herbin <[email protected]>"
LABEL NAME=tricoteuses-api
LABEL VERSION=1
5 changes: 5 additions & 0 deletions _provisioning/db/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:alpine

LABEL AUTHOR="Nelson Herbin <[email protected]>"
LABEL NAME=tricoteuses-db
LABEL VERSION=1
7 changes: 5 additions & 2 deletions _provisioning/ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ LABEL NAME=tricoteuses-ui
LABEL VERSION=1

RUN apk update && apk upgrade && \
apk add --no-cache git nodejs npm make g++
apk add --no-cache git nodejs make g++ python

RUN git clone https://framagit.org/parlement-ouvert/tricoteuses-ui.git
WORKDIR tricoteuses-ui

RUN npm install --verbose

CMD ["npm","start"]
EXPOSE 3000

0 comments on commit 257b11a

Please sign in to comment.