From a1b1787612678ae33426dc00f06fad195997f247 Mon Sep 17 00:00:00 2001 From: fanyx Date: Sat, 14 Nov 2020 14:26:48 +0100 Subject: [PATCH] create Docker resources --- .dockerignore | 9 +++++++++ Dockerfile | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..89e22b5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +# common ignores +Dockerfile +.drone.yml +.git* + +# repo +README.md +Features.md +venv \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index fdd3b1e..7acaac8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM python:3.9-alpine -ADD . /app/ +COPY . /app/ WORKDIR /app RUN pip install -r requirements.txt -USER 1000 +USER 1000:1000 CMD ["python", "main.py"] \ No newline at end of file