Skip to content

Commit 8215ef9

Browse files
committed
fix: 修复文本取件问题
1 parent f4abf13 commit 8215ef9

37 files changed

+27
-43
lines changed

Dockerfile

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
FROM node:18-alpine as webui
2-
COPY . /app
3-
WORKDIR /app/fcb-fronted/
4-
ENV NPM_CONFIG_LOGLEVEL=verbose
5-
RUN npm i
6-
RUN npm run build-only
7-
RUN mv dist/logo_small.png dist/assets/
8-
9-
10-
FROM python:3.9.5-alpine as FileCodeBox
1+
FROM python:3.9.5-slim-buster
112
LABEL author="Lan"
123
LABEL email="[email protected]"
13-
LABEL version="6"
14-
154

16-
# 先安装依赖可以产生缓存
17-
WORKDIR /app
18-
COPY requirements.txt /app
19-
# 安装gcc
20-
RUN apk add --no-cache gcc musl-dev
21-
RUN /usr/local/bin/python -m pip install --upgrade pip && pip install -r requirements.txt
22-
COPY ./backend/ /app
23-
COPY --from=webui /app/fcb-fronted/dist/ /app/dist
5+
COPY . /app
246
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
257
RUN echo 'Asia/Shanghai' >/etc/timezone
8+
WORKDIR /app
9+
RUN pip install -r requirements.txt
2610
EXPOSE 12345
2711
CMD ["python","main.py"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)