Skip to content

Commit

Permalink
fix: 修复文本取件问题
Browse files Browse the repository at this point in the history
  • Loading branch information
vastsa committed May 6, 2024
1 parent f4abf13 commit 8215ef9
Show file tree
Hide file tree
Showing 37 changed files with 27 additions and 43 deletions.
24 changes: 4 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
FROM node:18-alpine as webui
COPY . /app
WORKDIR /app/fcb-fronted/
ENV NPM_CONFIG_LOGLEVEL=verbose
RUN npm i
RUN npm run build-only
RUN mv dist/logo_small.png dist/assets/


FROM python:3.9.5-alpine as FileCodeBox
FROM python:3.9.5-slim-buster
LABEL author="Lan"
LABEL email="[email protected]"
LABEL version="6"


# 先安装依赖可以产生缓存
WORKDIR /app
COPY requirements.txt /app
# 安装gcc
RUN apk add --no-cache gcc musl-dev
RUN /usr/local/bin/python -m pip install --upgrade pip && pip install -r requirements.txt
COPY ./backend/ /app
COPY --from=webui /app/fcb-fronted/dist/ /app/dist
COPY . /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
WORKDIR /app
RUN pip install -r requirements.txt
EXPOSE 12345
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.
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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8215ef9

Please sign in to comment.