FROM node:8

WORKDIR /opt

COPY package*.json ./

RUN apt update && apt -y full-upgrade
RUN apt install -y postgresql-client
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production

COPY . .

EXPOSE 8080
CMD [ "npm", "start" ]