mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 19:37:34 +08:00
add YYeTsFE
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "YYeTsFE"]
|
||||
path = YYeTsFE
|
||||
url = https://github.com/wyx1818/YYeTsFE
|
||||
15
Dockerfile
15
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM python:3.9-alpine as builder
|
||||
FROM python:3.9-alpine as pybuilder
|
||||
|
||||
RUN apk update && apk add --no-cache tzdata ca-certificates alpine-sdk libressl-dev libffi-dev cargo && \
|
||||
apk add tiff-dev jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev \
|
||||
@@ -9,12 +9,19 @@ RUN pip3 install --user -r /requirements.txt && rm /requirements.txt
|
||||
|
||||
|
||||
|
||||
FROM node:alpine as nodebuilder
|
||||
COPY . /YYeTsBot
|
||||
WORKDIR /YYeTsBot/YYeTsFE
|
||||
RUN yarn && yarn build
|
||||
|
||||
FROM python:3.9-alpine
|
||||
|
||||
COPY --from=builder /root/.local /usr/local
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY . /YYeTsBot
|
||||
COPY --from=pybuilder /root/.local /usr/local
|
||||
COPY --from=pybuilder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=pybuilder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY --from=nodebuilder /YYeTsBot/YYeTsFE/build /YYeTsBot/yyetsweb
|
||||
|
||||
RUN apk update && apk add --no-cache libressl jpeg-dev openjpeg-dev libimagequant-dev tiff-dev freetype-dev libxcb-dev
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
1
YYeTsFE
Submodule
1
YYeTsFE
Submodule
Submodule YYeTsFE added at 49abae8d9c
Reference in New Issue
Block a user