@@ -0,0 +1,12 @@
+FROM node:14-alpine AS build
+
+WORKDIR /app
+ADD package*.json /app
+RUN npm install --legacy-peer-deps
+ADD . /app
+RUN npm run build
+FROM nginx:1.25.4-alpine
+COPY --from=build /app/default.conf /etc/nginx/conf.d/default.conf
+COPY --from=build /app/build /usr/share/nginx/html
@@ -0,0 +1,15 @@
+server {
+ listen 80;
+ server_name localhost;
+ root /usr/share/nginx/html;
+ auth_basic off;
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+ # 404 if a file is requested (so the main app isn't served)
+ location ~ ^.+\..+$ {
+ try_files $uri =404;
+}