mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
29 lines
540 B
Docker
29 lines
540 B
Docker
FROM node:11-alpine
|
|
LABEL maintainer="Ocean Protocol <devops@oceanprotocol.com>"
|
|
|
|
RUN apk add --no-cache --update \
|
|
bash \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
gettext \
|
|
make \
|
|
python \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
COPY package*.json /app/frontend/
|
|
WORKDIR /app/frontend
|
|
RUN npm install -g npm serve \
|
|
&& npm install \
|
|
&& npm cache clean --force
|
|
|
|
COPY . /app/frontend
|
|
RUN npm run build
|
|
|
|
# Default ENV values
|
|
ENV LISTEN_ADDRESS='0.0.0.0'
|
|
ENV LISTEN_PORT='3000'
|
|
|
|
ENTRYPOINT ["/app/frontend/scripts/docker-entrypoint.sh"]
|
|
|