lucas-wa commited on
Commit
6250002
1 Parent(s): 1e6b7ad

Adding Docker

Browse files
Files changed (3) hide show
  1. .dockerignore +41 -0
  2. .gitignore +27 -0
  3. Dockerfile +25 -0
.dockerignore ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ /**/static
5
+ /**/__pycache__
6
+ /**/node_modules
7
+ /**/dist
8
+ /.pnp
9
+ .pnp.js
10
+
11
+ # testing
12
+ /coverage
13
+
14
+ # next.js
15
+ /**/.next/
16
+ /out/
17
+
18
+ # production
19
+ /build
20
+
21
+ # misc
22
+ .DS_Store
23
+ *.pem
24
+
25
+ # debug
26
+ npm-debug.log*
27
+ yarn-debug.log*
28
+ yarn-error.log*
29
+
30
+ # local env files
31
+ .env
32
+ .env*.local
33
+
34
+ # vercel
35
+ .vercel
36
+
37
+ # typescript
38
+ *.tsbuildinfo
39
+ next-env.d.ts
40
+
41
+ .yarn
.gitignore ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ pnpm-debug.log*
8
+ lerna-debug.log*
9
+
10
+ /**/static
11
+ /**/node_modules
12
+ /**/__pycache__/
13
+ /**/*.pyc
14
+ /**/dist
15
+ dist-ssr
16
+ *.local
17
+
18
+ # Editor directories and files
19
+ .vscode/*
20
+ !.vscode/extensions.json
21
+ .idea
22
+ .DS_Store
23
+ *.suo
24
+ *.ntvs*
25
+ *.njsproj
26
+ *.sln
27
+ *.sw?
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian
2
+
3
+ RUN apt-get update
4
+
5
+ RUN apt-get install -y python3 pip
6
+
7
+ WORKDIR /code
8
+
9
+ COPY server/* /code/server/
10
+
11
+ RUN pip install --no-cache-dir --upgrade -r /code/server/requirements.txt --break-system-packages
12
+
13
+ COPY web /code/web/
14
+
15
+ RUN apt-get install -y curl
16
+
17
+ RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash - && apt-get install -y nodejs
18
+
19
+ RUN cd web && npm install
20
+
21
+ RUN cd web && npm run build
22
+
23
+ WORKDIR /code/server
24
+
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]