From 6c5ce5836863d79aa034e10929b1691c8004c21f Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Thu, 31 Oct 2019 15:05:34 +0100 Subject: [PATCH] Add Dockerfile --- frontend/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 frontend/Dockerfile diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..fc30411 --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,25 @@ +FROM node:13-alpine + +WORKDIR /usr/src/app +expose 3000 + +COPY package*.json ./ + +RUN npm install + +COPY . . + +ENV HOST sso.example.net +ENV BACKEND_API_URL http://oas.localhost:5002/graphql +ENV BASE_URL http://sso.example.net;3000 +ENV HYDRA_BASE_URL http://oas.example.net:4444 +ENV AUTHORIZE_URL http://oas.example.net:4444/oauth2/auth +ENV USERINFO_URL http://oas.example.net:4444/userinfo +ENV ACCESS_TOKEN http://oas.example.net:4444/oauth2/token +ENV REDIRECT_URL http://sso.example.net:3000/callback +ENV OAUTH_CLIENT_ID user-panel +ENV OAUTH_CLIENT_SECRET secret_secret + +RUN npm run build + +CMD ["npm", "run", "start"] -- GitLab