first commit

This commit is contained in:
2020-08-14 10:21:12 +08:00
parent 5c00a2534b
commit 4ac29d32e0
8 changed files with 41 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM node:8
COPY playfront /app
WORKDIR /app
#RUN npm install -g webpack typescript
#RUN npm install
RUN npx webpack
#RUN webpack
FROM nginx:1.11-alpine
COPY --from=0 /app/index.html /usr/share/nginx/html/
COPY --from=0 /app/dist /usr/share/nginx/html/dist/
COPY --from=0 /app/node_modules/bootstrap/dist/css/bootstrap.min.css /usr/share/nginx/html/node_modules/bootstrap/dist/css/bootstrap.min.css
COPY --from=0 /app/node_modules/react/umd/react.production.min.js /usr/share/nginx/html/node_modules/react/umd/react.production.min.js
COPY --from=0 /app/node_modules/react-dom/umd/react-dom.production.min.js /usr/share/nginx/html/node_modules/react-dom/umd/react-dom.production.min.js
COPY --from=0 /app/node_modules/whatwg-fetch/fetch.js /usr/share/nginx/html/node_modules/whatwg-fetch/fetch.js