Skip to content

Commit

Permalink
add repo dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zerobias committed Mar 6, 2019
1 parent d32028e commit 407c6ae
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tools/docker/Dockerfile
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"]

0 comments on commit 407c6ae

Please sign in to comment.