diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ca6a9b1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:12-alpine +LABEL maintainer="Rishi Ghan " + +# Working directory +WORKDIR /metadata-service +# Install dependencies +COPY package.json package-lock.json ./ +RUN npm ci --silent + +# Copy source +COPY . . + +# Build and cleanup +ENV NODE_ENV=production +RUN npm run build \ + && npm prune + +EXPOSE 3080 +# Start server +CMD ["npm", "start"] \ No newline at end of file