@ -0,0 +1,26 @@ |
|||||
|
FROM node:4 |
||||
|
|
||||
|
ENV HTTP_SERVER_VERSION 0.9.0 |
||||
|
ENV PUBLIC_FOLDER /commonroutesLandingPage |
||||
|
|
||||
|
RUN mkdir -p $PUBLIC_FOLDER |
||||
|
RUN npm install -g http-server@0.9.0 |
||||
|
RUN npm install -g bower |
||||
|
|
||||
|
RUN git clone https://github.com/arnaucode/commonroutesLandingPage.git |
||||
|
|
||||
|
RUN cd commonroutesLandingPage && \ |
||||
|
git clone https://github.com/arnaucode/commonroutesWebApp.git |
||||
|
RUN cd commonroutesLandingPage/commonroutesWebApp && \ |
||||
|
npm install && \ |
||||
|
bower install --allow-root |
||||
|
|
||||
|
RUN cd commonroutesLandingPage && \ |
||||
|
mv commonroutesWebApp app |
||||
|
|
||||
|
CMD http-server $PUBLIC_FOLDER |
||||
|
|
||||
|
EXPOSE 8085 |
||||
|
|
||||
|
#docker build -t landingpage . |
||||
|
#docker run -ti -d -p 80:8080 landingpage |
@ -1 +1,28 @@ |
|||||
# commonroutesLandingPage |
|
||||
|
# commonroutesLandingPage |
||||
|
|
||||
|
# Instructions |
||||
|
1 - download the repository (just need the Dockerfile) |
||||
|
|
||||
|
2 - build the docker image |
||||
|
``` |
||||
|
docker build -t webCommonRoutes . |
||||
|
``` |
||||
|
3 - launch a container with the image |
||||
|
``` |
||||
|
docker run -ti -d -p 80:8080 webCommonRoutes |
||||
|
``` |
||||
|
|
||||
|
The landingpage && webapp will be able in the ip/domain. |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
- server code: https://github.com/arnaucode/commonroutesServer |
||||
|
- frontend app code: https://github.com/arnaucode/commonroutesApp |
||||
|
- frontend webapp code: https://github.com/arnaucode/commonroutesWebApp |
||||
|
- images server: https://github.com/arnaucode/goImgServer |
||||
|
- admin web: https://github.com/arnaucode/commonroutesAdminWeb |
||||
|
- landing page: https://github.com/arnaucode/commonroutesLandingPage |
||||
|
|
||||
|
send files over ssh |
||||
|
scp dataset.tar.gz root@SERVERIP:/root/galdric |