Hamza9320 commited on
Commit
0e4a5fa
·
1 Parent(s): 3e011b7

add Dockerfile, docker-compose.yml, and .dockerignore

Browse files
Files changed (3) hide show
  1. .dockerignore +27 -0
  2. Dockerfile +25 -0
  3. docker-compose.yml +6 -0
.dockerignore ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ **/__pycache__
2
+ **/.venv
3
+ **/.classpath
4
+ **/.dockerignore
5
+ **/.env
6
+ **/.git
7
+ **/.gitignore
8
+ **/.project
9
+ **/.settings
10
+ **/.toolstarget
11
+ **/.vs
12
+ **/.vscode
13
+ **/*.*proj.user
14
+ **/*.dbmdl
15
+ **/*.jfm
16
+ **/bin
17
+ **/charts
18
+ **/docker-compose*
19
+ **/compose*
20
+ **/Dockerfile*
21
+ **/node_modules
22
+ **/npm-debug.log
23
+ **/obj
24
+ **/secrets.dev.yaml
25
+ **/values.dev.yaml
26
+ LICENSE
27
+ README.md
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # For more information, please refer to https://aka.ms/vscode-docker-python
2
+ FROM python:3-slim
3
+
4
+ # Keeps Python from generating .pyc files in the container
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+
7
+ # Turns off buffering for easier container logging
8
+ ENV PYTHONUNBUFFERED=1
9
+
10
+ # Install pip requirements
11
+ COPY requirements.txt .
12
+ RUN python -m pip install -r requirements.txt
13
+
14
+ WORKDIR /app
15
+ COPY . /app
16
+
17
+ # Creates a non-root user with an explicit UID and adds permission to access the /app folder
18
+ # For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
19
+ # RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
20
+ # USER appuser
21
+
22
+ EXPOSE 7860
23
+
24
+ # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
25
+ CMD ["python", "app.py"]
docker-compose.yml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ services:
2
+ semanticbookrecommender:
3
+ image: semanticbookrecommender
4
+ build:
5
+ context: .
6
+ dockerfile: ./Dockerfile