Skip to content
Snippets Groups Projects
Verified Commit 6c5ce583 authored by Mark's avatar Mark
Browse files

Add Dockerfile

parent 6ef2e1be
No related branches found
No related tags found
1 merge request!2Minimal frontend
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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment