-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.test
44 lines (39 loc) · 1.37 KB
/
Dockerfile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Create the react frontend build
FROM node:16.19.1-alpine3.17 AS client
ARG REACT_APP_API
ARG REACT_APP_GOOGLE_API_CLIENT_ID
ARG REACT_APP_GOOGLE_API_DEV_KEY
ARG REACT_APP_AUTH0_DOMAIN
ARG REACT_APP_AUTH0_CLIENT
ARG REACT_APP_AUTH0_AUDIENCE
ARG REACT_APP_HUBSPOT_PORTAL_ID
ARG REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID
ARG REACT_APP_INTERCOM_APP_ID
ARG REACT_APP_ONEDRIVE_CLIENT_ID
ARG REACT_APP_ENV_TYPE
ARG REACT_APP_LIVE_SESSION_ID
ENV REACT_APP_API=$REACT_APP_API
ENV REACT_APP_GOOGLE_API_CLIENT_ID=$REACT_APP_GOOGLE_API_CLIENT_ID
ENV REACT_APP_GOOGLE_API_DEV_KEY=$REACT_APP_GOOGLE_API_DEV_KEY
ENV REACT_APP_AUTH0_DOMAIN=$REACT_APP_AUTH0_DOMAIN
ENV REACT_APP_AUTH0_CLIENT=$REACT_APP_AUTH0_CLIENT
ENV REACT_APP_AUTH0_AUDIENCE=$REACT_APP_AUTH0_AUDIENCE
ENV REACT_APP_HUBSPOT_PORTAL_ID=$REACT_APP_HUBSPOT_PORTAL_ID
ENV REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID=$REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID
ENV REACT_APP_INTERCOM_APP_ID=$REACT_APP_INTERCOM_APP_ID
ENV REACT_APP_ONEDRIVE_CLIENT_ID=$REACT_APP_ONEDRIVE_CLIENT_ID
ENV REACT_APP_ENV_TYPE=$REACT_APP_ENV_TYPE
ENV REACT_APP_LIVE_SESSION_ID=$REACT_APP_LIVE_SESSION_ID
# Install and link the charts
WORKDIR /app/charts/
COPY ./rawgraphs-charts ./
RUN yarn install
RUN yarn build
RUN yarn link
# Build the react app
WORKDIR /app/client/
COPY ./dx.client ./
RUN yarn link "@rawgraphs/rawgraphs-charts"
RUN yarn install
RUN yarn build
CMD ["yarn", "docker-test"]