feat: add Dockerfile

This commit is contained in:
Sefa Eyeoglu 2022-02-18 19:30:31 +01:00
parent 651e432daf
commit ffeee6a986
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 17 additions and 0 deletions

5
docker.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
docker build metaenv -t metaenv
docker run -it --rm -e MODE=master -v $(pwd):/app metaenv:latest ./update.sh

12
metaenv/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3.10.2-bullseye
RUN pip install cachecontrol iso8601 requests lockfile jsonobject
RUN apt update && apt install -y rsync
RUN useradd -Ud /app user
USER user
WORKDIR /app