diff --git a/Dockerfile b/Dockerfile index 047732dd..8c51ffc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,12 @@ FROM mhart/alpine-node:8.9.4 +USER root -WORKDIR /opt/central-ledger -COPY . /opt/central-ledger +WORKDIR /opt/ml-api-adapter +COPY src /opt/ml-api-adapter/src +COPY config /opt/ml-api-adapter/config +COPY package.json /opt/ml-api-adapter/ +RUN apk --no-cache add git RUN apk add --no-cache -t build-dependencies make gcc g++ python libtool autoconf automake \ && cd $(npm root -g)/npm \ && npm install -g node-gyp @@ -13,4 +17,4 @@ RUN npm install --production && \ RUN apk del build-dependencies EXPOSE 3000 -CMD node src/api/index.js +CMD node src/api/index.js \ No newline at end of file