-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (26 loc) · 1003 Bytes
/
Dockerfile
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
45
FROM node:16-alpine as build-step
ARG REACT_APP_API_ENDPOINT
ENV REACT_APP_API_ENDPOINT $REACT_APP_API_ENDPOINT
ARG REACT_APP_BASE_URL
ENV REACT_APP_BASE_URL $REACT_APP_BASE_URL
ARG REACT_APP_STRIPE_PUBLISHABLE_KEY
ENV REACT_APP_STRIPE_PUBLISHABLE_KEY $REACT_APP_STRIPE_PUBLISHABLE_KEY
ARG REACT_APP_WEBSOCKET_API_ENDPOINT
ENV REACT_APP_WEBSOCKET_API_ENDPOINT $REACT_APP_WEBSOCKET_API_ENDPOINT
ARG REACT_APP_LIVE_STUN_URL
ENV REACT_APP_LIVE_STUN_URL $REACT_APP_LIVE_STUN_URL
ARG REACT_APP_LIVE_TURN_URL
ENV REACT_APP_LIVE_TURN_URL $REACT_APP_LIVE_TURN_URL
ARG REACT_APP_LIVE_TURN_USER
ENV REACT_APP_LIVE_TURN_USER $REACT_APP_LIVE_TURN_USER
ARG REACT_APP_LIVE_TURN_PASSWORD
ENV REACT_APP_LIVE_TURN_PASSWORD $REACT_APP_LIVE_TURN_PASSWORD
RUN mkdir /app
WORKDIR /app
COPY package.json /app
RUN npm install --force
COPY . /app
RUN npm run build
FROM nginx:alpine
COPY --from=build-step /app/build /usr/share/nginx/html
COPY --from=build-step /app/nginx.conf /etc/nginx/conf.d/default.conf