bawling out

This commit is contained in:
Aquaticholic
2022-04-08 15:28:08 +01:00
parent dd7856ef97
commit 5c370423b3
7 changed files with 41 additions and 16 deletions
+1
View File
@@ -10,4 +10,5 @@ RUN npm install
RUN npm install react-scripts
COPY . ./
#USER node
FROM nginx:1-alpine
CMD ["npm", "start"]
+7
View File
@@ -0,0 +1,7 @@
FROM nginx:1-alpine
# COPY --from=build-step /app/build /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
# COPY nginx/nginx.conf /etc/nginx/conf.d
EXPOSE 80
# EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]
+3 -6
View File
@@ -13,9 +13,6 @@ COPY . ./
RUN npm run build
FROM nginx:1-alpine
COPY --from=build-step /app/build /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
# COPY nginx/nginx.conf /etc/nginx/conf.d
EXPOSE 80
# EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]
RUN mkdir /nooo/
RUN mkdir /nooo/build/
COPY --from=build-step /app/build /nooo/build/
+2 -2
View File
@@ -39,8 +39,8 @@
"workbox-streams": "^5.1.4"
},
"scripts": {
"start": "react-scripts --max_old_space_size=4096 start",
"build": "react-scripts --max_old_space_size=4096 build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},