blob: 36e3c20b7d370cf56aedaf57af971171e8382efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FROM node:14
MAINTAINER OpenDC Maintainers <opendc@atlarge-research.com>
ARG REACT_APP_OAUTH_CLIENT_ID
# Copy OpenDC directory
COPY ./ /opendc
# Build frontend
RUN cd /opendc/ \
&& rm -rf ./build \
&& yarn \
&& export REACT_APP_OAUTH_CLIENT_ID=$REACT_APP_OAUTH_CLIENT_ID \
&& yarn build
# Setup nginx to serve the frontend
FROM nginx:1.19
COPY --from=0 /opendc/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
|