This commit is contained in:
parent
00391c6857
commit
cf9ee7ebe4
|
@ -26,7 +26,9 @@ import Marking from '../TeacherPages/MarkingPages/Marking';
|
||||||
import SendTrain from '../TeacherPages/Trainmanage/SendTrain'
|
import SendTrain from '../TeacherPages/Trainmanage/SendTrain'
|
||||||
import TrainManage from '../TeacherPages/Trainmanage/Trainmanage'
|
import TrainManage from '../TeacherPages/Trainmanage/Trainmanage'
|
||||||
import StudentLink from '../TeacherPages/MarkingPages/StudentLink';
|
import StudentLink from '../TeacherPages/MarkingPages/StudentLink';
|
||||||
import Test from '../TeacherPages/TestManage/Test';
|
import Test from '../TeacherPages/TestManage/Test.tsx'
|
||||||
|
|
||||||
|
|
||||||
// 定义一个组件来包裹除了特定页面(exam)外的所有页面使其有导航
|
// 定义一个组件来包裹除了特定页面(exam)外的所有页面使其有导航
|
||||||
const MainLayout = ({ headerNav:HeaderNav }) => {
|
const MainLayout = ({ headerNav:HeaderNav }) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -29,7 +29,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
- '8765:8765'
|
- '8765:8765'
|
||||||
command: tail -f /dev/null
|
command: gunicorn -w 3 -t 60 -b 0.0.0.0:8000 app:app
|
||||||
|
|
||||||
code-server:
|
code-server:
|
||||||
build: ./docker/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 \
|
chown -R flask:flask /var/log/flask-app \
|
||||||
&& apt-get -y update \
|
&& apt-get -y update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& 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 \
|
&& apt-get clean \
|
||||||
&& rm -rf /config/* /tmp/* /var/lib/apt/lists/* /var/tmp/* \
|
&& rm -rf /config/* /tmp/* /var/lib/apt/lists/* /var/tmp/* \
|
||||||
&& pip install --upgrade pip
|
&& pip install --upgrade pip
|
||||||
|
@ -38,4 +38,4 @@ COPY --from=build-frontend /usr/src/app/build/ /home/flask/public/
|
||||||
EXPOSE 8000 22 8765
|
EXPOSE 8000 22 8765
|
||||||
USER root
|
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