-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
- Loading branch information
Showing
16 changed files
with
7,615 additions
and
5,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets":[ | ||
"es2015", "react" | ||
], | ||
"plugins": ["transform-decorators-legacy", "transform-class-properties"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
Dockerfile | ||
docker-compose* | ||
/haproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.