feat: update docker file

This commit is contained in:
yanghao05
2025-04-28 19:45:26 +08:00
parent d6ba3a29f7
commit 21356150a5
2 changed files with 1 additions and 1 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM docker.hub.ipao.vip/jrottenberg/ffmpeg:4.4-alpine
# Set timezone
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata && \
mkdir -p /app/downloads /app/dist
COPY backend/build/app /app/app
COPY backend/config.prod.toml /app/config.toml
COPY frontend/admin/dist /app/dist/admin
COPY frontend/wechat/dist /app/dist/wechat
WORKDIR /app
ENTRYPOINT ["/app/app"]
CMD [ "serve" ]