Upload 2 files
Browse files- Dockerfile (2).txt +10 -0
- start (1).sh +24 -0
Dockerfile (2).txt
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu
|
2 |
+
RUN apt update && apt install git build-essential wget python3-pip python3-numpy python3-opencv libopencv-dev -y
|
3 |
+
RUN mkdir /place
|
4 |
+
WORKDIR ./place
|
5 |
+
RUN git clone https://github.com/Ar57m/another_fractal_generator/ -b server
|
6 |
+
RUN chmod -R 777 ./another_fractal_generator
|
7 |
+
WORKDIR ./another_fractal_generator
|
8 |
+
COPY ../* ./
|
9 |
+
RUN bash ./start.sh
|
10 |
+
CMD python3 ./runner.py --port 7860
|
start (1).sh
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
|
4 |
+
PORT=8888
|
5 |
+
|
6 |
+
|
7 |
+
while [[ $# -gt 0 ]]; do
|
8 |
+
case $1 in
|
9 |
+
--port)
|
10 |
+
PORT="$2"
|
11 |
+
shift
|
12 |
+
shift
|
13 |
+
;;
|
14 |
+
*)
|
15 |
+
shift
|
16 |
+
;;
|
17 |
+
esac
|
18 |
+
done
|
19 |
+
|
20 |
+
|
21 |
+
rm *so
|
22 |
+
|
23 |
+
|
24 |
+
g++ -O3 -Wall -Wextra -pedantic -march=native -fPIC -funroll-loops -ffast-math -fopenmp -shared -o libfract.so fract.cpp
|