diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ba575da --- /dev/null +++ b/.dockerignore @@ -0,0 +1,13 @@ +.git +.gitignore +.venv +__pycache__ +*.pyc +*.pyo +*.pyd +.pytest_cache +.coverage +htmlcov +logs +data +tmp diff --git a/Dockerfile b/Dockerfile index 6c0c97e..dec63e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,9 +16,11 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -# Drop privileges -RUN useradd -m -u 1000 myfsio \ +# Create data directory and set permissions +RUN mkdir -p /app/data \ + && useradd -m -u 1000 myfsio \ && chown -R myfsio:myfsio /app + USER myfsio EXPOSE 5000 5100 diff --git a/app/version.py b/app/version.py index d2eb696..122431b 100644 --- a/app/version.py +++ b/app/version.py @@ -1,7 +1,7 @@ """Central location for the application version string.""" from __future__ import annotations -APP_VERSION = "0.1.0" +APP_VERSION = "0.1.0b2" def get_version() -> str: