@@ -12,18 +12,6 @@ RUN apt-get install -y wget unzip dos2unix
1212# ENV GRADLE_HOME=/opt/gradle/gradle-8.11.1
1313# ENV PATH=$PATH:$GRADLE_HOME/bin
1414
15- RUN apt-get install -y nodejs npm
16-
17- WORKDIR /gradmap/frontend
18-
19- COPY frontend/package*.json ./
20-
21- RUN npm install
22-
23- # Install nginx
24- RUN apt-get install -y nginx
25-
26-
2715ENV PORT=5173
2816EXPOSE 5173 8080 80
2917
@@ -37,29 +25,14 @@ WORKDIR /gradmap/app
3725WORKDIR /gradmap/frontend
3826
3927# Quickly change the code to make it point to the proper endpoint
40- RUN sed -i "s/dev_yes/dev_no/g" src/Course.tsx
41-
42- # Build the project
43- RUN npm run build
44-
45- # Move it to the right place
46- RUN rm -rf /var/www/html
47- RUN mkdir /var/www/html
48- RUN mv dist/* /var/www/html
49-
50- # Configure nginx
51- RUN cp nginx.conf /etc/nginx/sites-available/server.conf
52- RUN ln -s /etc/nginx/sites-available/server.conf /etc/nginx/sites-enabled/
53- RUN unlink /etc/nginx/sites-enabled/default
28+ # RUN sed -i "s/dev_yes/dev_no/g" src/Course.tsx
5429
5530RUN alias scrape="./gradlew runScraperNoCache"
5631
5732WORKDIR /gradmap
58- RUN ./gradlew clean
59-
60-
61- RUN chmod +x ./runner.sh
62- RUN sed -i "s/^M$//" ./runner.sh
63- RUN dos2unix runner.sh
64- CMD ["./runner.sh" ]
65- # CMD nginx
33+ # RUN ./gradlew clean
34+ #
35+ # RUN chmod +x ./runner.sh
36+ # RUN sed -i "s/^M$//" ./runner.sh
37+ # RUN dos2unix runner.sh
38+ CMD ["./gradlew" , "clean" , "run" ]
0 commit comments