Compare commits
26 Commits
1f51575bb0
...
84a88d1062
Author | SHA1 | Date |
---|---|---|
mzp | 84a88d1062 | |
xiaomeng | f78510043e | |
xiaomeng | e8b736299a | |
xiaomeng | dde09a8564 | |
xiaomeng | 3092d08a92 | |
xiaomeng | 1928aeaa61 | |
xiaomeng | 54ae501a7b | |
xiaomeng | b352dc1bb0 | |
xiaomeng | 5c01e3693d | |
xiaomeng | 6d402ee265 | |
xiaomeng | 4aea05d5d2 | |
xiaomeng | e8aee0fb3e | |
xiaomeng | 0e61082d16 | |
xiaomeng | ceba1f0b47 | |
xiaomeng | 72c593b4de | |
xiaomeng | c9f9155367 | |
clibing | 8bedf46050 | |
clibing | 57d9ae8cfe | |
wmsjhappy@gmail.com | 001a14ccd2 | |
clibing | 98550c0e6b | |
wmsjhappy@gmail.com | 5c44f7060e | |
clibing | d9d8544aa0 | |
clibing | 96911cfc27 | |
clibing | d130143515 | |
wmsjhappy@gmail.com | 299d679450 | |
clibing | ef9e02bf47 |
|
@ -0,0 +1,26 @@
|
|||
FROM nginx:1.17.9-alpine
|
||||
|
||||
LABEL maintainer="clibing <wmsjhappy@gmail.com>"
|
||||
|
||||
ARG TZ='Asia/Shanghai'
|
||||
|
||||
ENV TZ ${TZ}
|
||||
|
||||
RUN apk upgrade --update \
|
||||
&& apk add bash \
|
||||
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||||
&& echo ${TZ} > /etc/timezone \
|
||||
&& rm -rf /usr/share/nginx/html /var/cache/apk/*
|
||||
|
||||
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY dist /usr/share/nginx/html
|
||||
|
||||
RUN chown -R nginx /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
STOPSIGNAL SIGTERM
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
89
README.md
89
README.md
|
@ -1,3 +1,92 @@
|
|||
# build
|
||||
|
||||
## with builder
|
||||
```bash
|
||||
docker run --rm -it -v /root/workspace/wszhyWx:/workspace clibing/alpine-build bash
|
||||
cd /workspace
|
||||
npm install --legacy-peer-deps
|
||||
npm run build
|
||||
|
||||
```
|
||||
|
||||
## exec sh in container log
|
||||
```bash
|
||||
> ysws-vue@0.1.0 build
|
||||
> vue-cli-service build
|
||||
|
||||
All browser targets in the browserslist configuration have supported ES module.
|
||||
Therefore we don't build two separate bundles for differential loading.
|
||||
|
||||
|
||||
⠋ Building for production...
|
||||
|
||||
WARNING Compiled with 2 warnings 11:07:23 PM
|
||||
|
||||
warning
|
||||
|
||||
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
||||
This can impact web performance.
|
||||
Assets:
|
||||
img/index-background.6170a105.png (1.88 MiB)
|
||||
fonts/ALIBABA-PUHUITI-MEDIUM.7e8661bc.OTF (6.26 MiB)
|
||||
fonts/ALIBABA-PUHUITI-REGULAR.035db024.OTF (6.6 MiB)
|
||||
fonts/Alimama_ShuHeiTi_Bold.0ac727c9.ttf (1.3 MiB)
|
||||
img/login-bg.d0ccd5e4.png (1.44 MiB)
|
||||
img/background.14e833d2.jpg (616 KiB)
|
||||
js/970.9288c639.js (1.01 MiB)
|
||||
css/chunk-vendors.d93d07ef.css (246 KiB)
|
||||
js/chunk-vendors.b4684c39.js (2.14 MiB)
|
||||
|
||||
warning
|
||||
|
||||
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
||||
Entrypoints:
|
||||
app (2.49 MiB)
|
||||
css/chunk-vendors.d93d07ef.css
|
||||
js/chunk-vendors.b4684c39.js
|
||||
css/app.1d0469df.css
|
||||
js/app.81c6b894.js
|
||||
|
||||
|
||||
File Size Gzipped
|
||||
|
||||
dist/js/chunk-vendors.b4684c39.js 2192.83 KiB 587.48 KiB
|
||||
dist/js/970.9288c639.js 1029.18 KiB 340.26 KiB
|
||||
dist/js/899.9e1072c1.js 60.46 KiB 17.31 KiB
|
||||
dist/js/app.81c6b894.js 44.54 KiB 19.10 KiB
|
||||
dist/js/51.54b739ec.js 28.85 KiB 13.19 KiB
|
||||
dist/js/491.f0009224.js 20.95 KiB 8.37 KiB
|
||||
dist/js/617.9950aee6.js 18.03 KiB 7.03 KiB
|
||||
dist/js/33.4aac9c4b.js 17.99 KiB 6.97 KiB
|
||||
dist/js/573.56d9ffde.js 16.37 KiB 7.74 KiB
|
||||
dist/js/985.5c7740ef.js 14.00 KiB 7.06 KiB
|
||||
dist/css/chunk-vendors.d93d07ef.css 245.69 KiB 43.63 KiB
|
||||
dist/css/app.1d0469df.css 63.51 KiB 30.42 KiB
|
||||
dist/css/51.60c1caae.css 49.92 KiB 32.33 KiB
|
||||
dist/css/33.bc37da49.css 0.72 KiB 0.34 KiB
|
||||
dist/css/491.bc37da49.css 0.72 KiB 0.34 KiB
|
||||
dist/css/573.bc37da49.css 0.72 KiB 0.34 KiB
|
||||
dist/css/617.bc37da49.css 0.72 KiB 0.34 KiB
|
||||
dist/css/899.bc37da49.css 0.72 KiB 0.34 KiB
|
||||
dist/css/985.bc37da49.css 0.72 KiB 0.34 KiB
|
||||
|
||||
Images and other types of assets omitted.
|
||||
Build at: 2023-10-07T15:07:23.981Z - Hash: d30c57e5506e3d29 - Time: 45735ms
|
||||
|
||||
DONE Build complete. The dist directory is ready to be deployed.
|
||||
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
|
||||
```
|
||||
|
||||
## exit container
|
||||
|
||||
## build image
|
||||
|
||||
```` bash
|
||||
./build-image.sh
|
||||
````
|
||||
|
||||
|
||||
|
||||
# ysws-vue
|
||||
|
||||
## Project setup
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
BRANCH=$(git branch --show-current)
|
||||
BUILD_DATE=$(date "+%s")
|
||||
COMMIT_SHA1=$(git rev-parse HEAD)
|
||||
docker build -t lihe-control.com/iot-www:${BRANCH}-${COMMIT_SHA1:0:8}-${BUILD_DATE} -f Dockerfile .
|
|
@ -0,0 +1,20 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
#charset koi8-r;
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/index.html $uri/index.htm /index.html;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue