forked from effector/effector
-
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.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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,24 @@ | ||
# FROM node:11-alpine as installer | ||
# WORKDIR /workspace | ||
|
||
# ## Install build toolchain, install node deps and compile native add-ons | ||
# RUN apk add --no-cache --virtual .gyp python make g++ | ||
# RUN yarn init --yes && yarn add -D parcel-bundler bs-platform | ||
|
||
FROM node:11-alpine as builder | ||
RUN apk add --no-cache git | ||
WORKDIR /workspace | ||
RUN git clone \ | ||
--single-branch --branch develop \ | ||
--depth=1 \ | ||
https://github.com/zerobias/effector.git /workspace && rm -rf .git | ||
|
||
FROM node:11-alpine as runner | ||
WORKDIR /workspace | ||
COPY --from=builder /workspace /workspace | ||
# COPY --from=installer /workspace/node_modules /workspace/node_modules | ||
# COPY --from=builder node_modules . | ||
RUN apk add --no-cache --virtual .gyp python make g++ ninja | ||
RUN yarn | ||
RUN node tools/builder.js | ||
CMD ["sh"] |