2019-04-04 11:30:31 +02:00
|
|
|
FROM node:11-alpine
|
|
|
|
LABEL maintainer="Ocean Protocol <devops@oceanprotocol.com>"
|
|
|
|
|
2019-10-15 11:39:34 +02:00
|
|
|
RUN apk add --no-cache --update \
|
|
|
|
bash \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
gettext \
|
|
|
|
make \
|
|
|
|
python \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
2019-04-04 11:30:31 +02:00
|
|
|
|
2019-10-15 11:39:34 +02:00
|
|
|
COPY package*.json /app/frontend/
|
2019-04-04 11:30:31 +02:00
|
|
|
WORKDIR /app/frontend
|
2019-10-15 11:39:34 +02:00
|
|
|
RUN npm install -g npm serve \
|
|
|
|
&& npm install \
|
|
|
|
&& npm cache clean --force
|
2019-04-04 11:30:31 +02:00
|
|
|
|
2019-10-15 11:39:34 +02:00
|
|
|
COPY . /app/frontend
|
2019-04-05 11:53:02 +02:00
|
|
|
RUN npm run build
|
2019-04-04 11:30:31 +02:00
|
|
|
|
|
|
|
# Default ENV values
|
|
|
|
ENV LISTEN_ADDRESS='0.0.0.0'
|
|
|
|
ENV LISTEN_PORT='3000'
|
|
|
|
|
|
|
|
ENTRYPOINT ["/app/frontend/scripts/docker-entrypoint.sh"]
|
2019-04-05 11:53:02 +02:00
|
|
|
|