|
|
@@ -0,0 +1,17 @@
|
|
|
+FROM node:14-alpine AS builder
|
|
|
+
|
|
|
+WORKDIR /app
|
|
|
+COPY package.json yarn.lock ./
|
|
|
+RUN yarn
|
|
|
+COPY src ./src
|
|
|
+COPY public ./public
|
|
|
+COPY tsconfig.json .
|
|
|
+
|
|
|
+ENV REACT_APP_API_URL=http://localhost:3002
|
|
|
+RUN yarn build && rm -rf node_modules
|
|
|
+
|
|
|
+FROM nginx:alpine
|
|
|
+
|
|
|
+WORKDIR /app
|
|
|
+COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
+COPY --from=0 /app/build .
|