Skip to content
This repository was archived by the owner on Aug 14, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.gitignore
node_modules
npm-debug.log
46 changes: 46 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM mhart/alpine-node:6

MAINTAINER Oz Haven (@therebelrobot) <dockerhub@therebelrobot.com>

# download yarn
ENV YARN_VERSION 0.21.3
ADD https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v${YARN_VERSION}.tar.gz /opt/yarn.tar.gz

# make is needed for running docker locally
RUN apk update && apk add --no-cache make python g++

# install yarn
RUN yarnDirectory=/opt/yarn && \
mkdir -p "$yarnDirectory" && \
tar -xzf /opt/yarn.tar.gz -C "$yarnDirectory" && \
ln -s "$yarnDirectory/dist/bin/yarn" /usr/local/bin/ && \
rm /opt/yarn.tar.gz

# copy BrigadeHub projects
COPY ./distributions/suite ./suite
COPY ./core ./core
COPY ./themes/c4sf/public ./public
COPY ./themes/c4sf/admin ./admin

ENV DIRPATH ./

WORKDIR $DIRPATH/core
RUN make install
RUN make link

WORKDIR $DIRPATH/admin
RUN make install
RUN make link

WORKDIR $DIRPATH/public
RUN make install
RUN make link

WORKDIR $DIRPATH/suite

EXPOSE 5555

ENV PORT 5555
ENV NODE_ENV development

RUN make install