Browse Source

Add docker file

Arkadiusz Ryś 2 years ago
parent
commit
d43c521679
2 changed files with 27 additions and 0 deletions
  1. 10 0
      Dockerfile
  2. 17 0
      local.yml

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+ARG PYTHON_VERSION=3.11-slim-bullseye
+FROM python:${PYTHON_VERSION}
+ARG APP_HOME=/app
+ENV PYTHONUNBUFFERED 1
+ENV PYTHONDONTWRITEBYTECODE 1
+WORKDIR ${APP_HOME}
+COPY ./requirements.txt ${APP_HOME}/requirements.txt
+RUN pip install --no-cache-dir --upgrade -r requirements.txt
+COPY . ${APP_HOME}
+CMD ["python3", "-m", "graph_exploring_tool"]

+ 17 - 0
local.yml

@@ -0,0 +1,17 @@
+version: '3'
+
+services:
+  graph-exploring-tool:
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    image: graph-exploring-tool
+    container_name: graph-exploring-tool
+    user: "1000:1000"
+    volumes:
+      - "./data:/app/data"
+    environment:
+      - DISPLAY
+    network_mode: "host"
+    command: cp -r /tyranny/ /export
+