Skip to content

Commit

Permalink
Upgraded Nodeversion to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepmvn committed Oct 16, 2018
1 parent 5844986 commit 53f7eb0
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions Dockerfile
@@ -1,38 +1,16 @@
FROM ubuntu:16.04
FROM node:10

RUN apt-get update \
## Install base environment
&& apt-get install -y wget postgresql postgresql-contrib

## Nodejs
# Prepare
WORKDIR /opt/
# Download
RUN wget https://nodejs.org/dist/v6.11.1/node-v6.11.1-linux-x64.tar.xz \
# Unpack
&& tar xf node-v6.11.1-linux-x64.tar.xz \
&& rm node-v6.11.1-linux-x64.tar.xz \
&& mv node-v6.11.1-linux-x64 node
# Install
WORKDIR /opt/node
RUN mv bin/* /usr/bin/ \
&& mv include/* /usr/include/ \
&& mv lib/* /usr/lib/ \
&& mv share/doc/* /usr/share/doc/ \
&& mv share/man/man1/* /usr/share/man/man1/ \
&& mv share/systemtap/* /usr/share/systemtap/
RUN apt-get update \
&& apt-get install -y postgresql postgresql-contrib

## Postgres
# Configuration
RUN mkdir /opt/pgsql \
&& chown postgres -R /opt/pgsql
## Postgres Configuration
RUN mkdir /opt/pgsql && chown postgres -R /opt/pgsql
WORKDIR /opt/postgresql

ADD resources/dbcreate.sql dbcreate.sql
RUN service postgresql start && su postgres -c "createuser rasaui && echo \"create database rasaui; \c rasaui; \i dbcreate.sql\" | psql && echo \"grant all on database rasaui to rasaui; grant all privileges on all tables in schema public to rasaui; grant all privileges on all sequences in schema public to rasaui \"|psql rasaui" && service postgresql stop

## RasaUI
# Installation
## RasaUI Installation
ADD . /opt/rasaui
WORKDIR /opt/rasaui

Expand All @@ -48,5 +26,4 @@ ENV rasanluendpoint=http://localhost:5000
ENV rasacoreendpoint=http://localhost:5005

EXPOSE 5001

ENTRYPOINT bash -c 'hostname -I; service postgresql start && su rasaui -c "npm start"'
ENTRYPOINT bash -c 'hostname -I; service postgresql start && su rasaui -c "npm start"'

0 comments on commit 53f7eb0

Please sign in to comment.