ARG NODE_VERSION=current-alpine

FROM node:${NODE_VERSION}

LABEL maintainer="<NAME> - <EMAIL>" \
        org.label-schema.version="1.0.0" \
        org.label-schema.release-data="2020-03-23" \
        org.label-schema.url="https://github.com/lpmatos" \
        org.label-schema.node="https://nodejs.org/en/" \
        org.label-schema.react="https://pt-br.reactjs.org/" \
        org.label-schema.npm="https://www.npmjs.com/" \
        org.label-schema.name="Semana Omnistack Dockerfile Backend" 

ENV HOME=/app

COPY [ ".", "/app" ]

WORKDIR ${HOME}

RUN npm install

EXPOSE 3000

CMD [ "npm", "start" ]
