This commit is contained in:
30404 2024-07-04 10:00:32 +08:00
commit 0573e4f702
3 changed files with 6 additions and 4 deletions

View File

@ -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 (

View File

@ -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

View File

@ -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"]