1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

Docker tweaks

This commit is contained in:
Matthias Kretschmann 2019-10-15 11:39:34 +02:00
parent 78d4c8b874
commit 9226bf2799
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,20 +1,23 @@
FROM node:11-alpine FROM node:11-alpine
LABEL maintainer="Ocean Protocol <devops@oceanprotocol.com>" LABEL maintainer="Ocean Protocol <devops@oceanprotocol.com>"
RUN apk add --no-cache --update\ RUN apk add --no-cache --update \
bash\ bash \
g++\ g++ \
gcc\ gcc \
git\ git \
gettext\ gettext \
make\ make \
python 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 COPY . /app/frontend
WORKDIR /app/frontend
RUN npm install -g npm serve
RUN npm install
RUN npm run build RUN npm run build
# Default ENV values # Default ENV values