Merge branch 'master' of https://gitea.xn--7p0a.site/2312072104/dm
This commit is contained in:
commit
0573e4f702
|
@ -26,7 +26,9 @@ import Marking from '../TeacherPages/MarkingPages/Marking';
|
|||
import SendTrain from '../TeacherPages/Trainmanage/SendTrain'
|
||||
import TrainManage from '../TeacherPages/Trainmanage/Trainmanage'
|
||||
import StudentLink from '../TeacherPages/MarkingPages/StudentLink';
|
||||
import Test from '../TeacherPages/TestManage/Test';
|
||||
import Test from '../TeacherPages/TestManage/Test.tsx'
|
||||
|
||||
|
||||
// 定义一个组件来包裹除了特定页面(exam)外的所有页面使其有导航
|
||||
const MainLayout = ({ headerNav:HeaderNav }) => {
|
||||
return (
|
||||
|
|
|
@ -29,7 +29,7 @@ services:
|
|||
ports:
|
||||
- '8000:8000'
|
||||
- '8765:8765'
|
||||
command: tail -f /dev/null
|
||||
command: gunicorn -w 3 -t 60 -b 0.0.0.0:8000 app:app
|
||||
|
||||
code-server:
|
||||
build: ./docker/code-server
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN useradd -m -s /bin/bash flask && \
|
|||
chown -R flask:flask /var/log/flask-app \
|
||||
&& apt-get -y update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
python3 python3-dev python3-pip python3-venv \
|
||||
python3 python3-dev python3-pip python3-venv libssl-dev \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /config/* /tmp/* /var/lib/apt/lists/* /var/tmp/* \
|
||||
&& pip install --upgrade pip
|
||||
|
@ -38,4 +38,4 @@ COPY --from=build-frontend /usr/src/app/build/ /home/flask/public/
|
|||
EXPOSE 8000 22 8765
|
||||
USER root
|
||||
|
||||
# CMD ["gunicorn", "-w", "3", "-t", "60", "-b", "0.0.0.0:8000", "app:app"]
|
||||
CMD ["gunicorn", "-w", "3", "-t", "60", "-b", "0.0.0.0:8000", "app:app"]
|
Loading…
Reference in New Issue