This repository was archived by the owner on Mar 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11# Dockerfile
2- FROM node:16.13.2-alpine
2+ FROM node:16.18.1-alpine3.16
33
44# create destination directory
55WORKDIR /usr/src/website-shot
66
77# update and install dependency
8- RUN apk add --no-cache git chromium
8+ RUN apk add --no-cache chromium wqy-zenhei --repository http://nl.alpinelinux.org/alpine/edge/testing
99
1010# copy package.json and install dependencies
1111COPY package*.json /usr/src/website-shot/
12- RUN npm install
12+ RUN yarn install
1313
1414# copy the app, note .dockerignore
1515COPY . /usr/src/website-shot/
16- RUN npm run generate
17- RUN npm run build
16+ RUN yarn generate
17+ RUN yarn build
1818
1919EXPOSE 3000
2020
@@ -23,4 +23,4 @@ ENV NUXT_PORT 3000
2323ENV PASSWORD_PROTECT 0
2424ENV PASSWORD null
2525
26- CMD [ "npm " , "start" ]
26+ CMD [ "yarn " , "start" ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: '3.3'
33services :
44 website-shot :
55 ports :
6- - ' 3003 :3000'
6+ - ' 3000 :3000'
77 volumes :
88 - ' /docker/webshot:/usr/src/website-shot/screenshots'
99 image : flowko1/website-shot
Original file line number Diff line number Diff line change 548548 v-if =" result && result.url"
549549 :src =" result.url"
550550 width =" 100%"
551- style =" height : 50vh "
551+ style =" height : 50vh ; object-fit : cover ; "
552552 />
553553 </div >
554554 </div >
You can’t perform that action at this time.
0 commit comments