Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 0312ae9

Browse files
committed
feat: #41 fixed chinese strings not showing
1 parent 67a7d35 commit 0312ae9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Dockerfile
2-
FROM node:16.13.2-alpine
2+
FROM node:16.18.1-alpine3.16
33

44
# create destination directory
55
WORKDIR /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
1111
COPY package*.json /usr/src/website-shot/
12-
RUN npm install
12+
RUN yarn install
1313

1414
# copy the app, note .dockerignore
1515
COPY . /usr/src/website-shot/
16-
RUN npm run generate
17-
RUN npm run build
16+
RUN yarn generate
17+
RUN yarn build
1818

1919
EXPOSE 3000
2020

@@ -23,4 +23,4 @@ ENV NUXT_PORT 3000
2323
ENV PASSWORD_PROTECT 0
2424
ENV PASSWORD null
2525

26-
CMD [ "npm", "start" ]
26+
CMD [ "yarn", "start" ]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.3'
33
services:
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

pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
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>

0 commit comments

Comments
 (0)