Commit 03839f7d authored by Matheus Horstmann's avatar Matheus Horstmann 🐴
Browse files

Update Dockerfile, package.json to resolve loopback-cli dependencies


Signed-off-by: Matheus Horstmann's avatarMatheus Horstmann <mch15@inf.ufpr.br>

Update Dockerfile to use a stable version of loopback-cli
Signed-off-by: Matheus Horstmann's avatarMatheus Horstmann <mch15@inf.ufpr.br>
parent f358512b
FROM node:8.12.0
FROM node:6.14.4
LABEL maintainer="horstmannmat <mch15@inf.ufpr.br>"
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
#Install apt-utils to prevent warning messages
RUN apt-get -y update -qq && apt-get -y upgrade -qq && apt-get install -y -qq apt-utils vim
# RUN apt-get -y update -qq && apt-get -y upgrade -qq && apt-get install -y -qq apt-utils vim
# Set an environment variable to store where the app is installed to inside of the Docker image.
ENV INSTALL_PATH /app
RUN mkdir -p $INSTALL_PATH
# This sets the context of where commands will be ran in and is documented
# on Docker's website extensively.
......@@ -19,15 +20,16 @@ WORKDIR $INSTALL_PATH
COPY . .
# ENV NODE_ENV developement
RUN yarn global add yarn@latest && \
yarn global add loopback-cli@3.x && \
yarn install
RUN yarn install
# RUN host ensalamento-postgres
#
# VOLUME ["$INSTALL_PATH/"]
#
ENV PATH=$PATH:/app/node_modules/.bin
EXPOSE 3000
......
......@@ -24,7 +24,8 @@
},
"devDependencies": {
"eslint": "^5.6.1",
"eslint-config-loopback": "^8.0.0"
"eslint-config-loopback": "^8.0.0",
"loopback-cli": "3.1.0"
},
"repository": {
"type": "",
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment