forked from NYULibraries/eluna-2019-devday-advanced-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 782 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:8.16.0-alpine
ENV INSTALL_PATH /app
# Build-base: Package/compilation Essentials
# Git: for potential git-based NPM dependencies
# Python: for node-sass
RUN apk add --update --no-cache \
build-base \
git \
python
# Install node_modules with yarn
COPY package.json yarn.lock /tmp/
RUN cd /tmp && yarn install --frozen-lockfile --ignore-optional \
&& mkdir -p $INSTALL_PATH \
&& cd $INSTALL_PATH \
&& cp -R /tmp/node_modules $INSTALL_PATH \
&& rm -r /tmp/* && yarn cache clean
WORKDIR $INSTALL_PATH
# Installs packages for any subdirectories
COPY package.json yarn.lock lerna.json ./
COPY ./primo-explore ./primo-explore
RUN yarn lerna bootstrap
COPY . .
EXPOSE 8003 3001
CMD yarn lerna bootstrap && VIEW=${VIEW} PROXY_SERVER=${PROXY_SERVER} yarn start