Skip to content

Commit

Permalink
Move away from roc
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
  • Loading branch information
tjamet committed Apr 15, 2018
1 parent e85adb8 commit 3701350
Show file tree
Hide file tree
Showing 16 changed files with 7,615 additions and 5,299 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets":[
"es2015", "react"
],
"plugins": ["transform-decorators-legacy", "transform-class-properties"]
}
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
Dockerfile
docker-compose*
/haproxy
14 changes: 4 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
FROM node AS build

RUN npm install -g roc@next
RUN mkdir /src
WORKDIR /src
ADD package* /src/

RUN npm install

ADD . /src
RUN roc build
RUN npm run-script build

# FROM node:alpine
# RUN npm install -g roc
# COPY roc.config.js /app/roc.config.js
# COPY --from=build /src/build /app
# WORKDIR /app
ENTRYPOINT ["roc"]
CMD ["start"]
EXPOSE 3000

FROM nginx:alpine
COPY --from=build /src/dist /usr/share/nginx/html
Loading

0 comments on commit 3701350

Please sign in to comment.