From 51a4bf948b0da3fcb244112d64f811284f2c29ac Mon Sep 17 00:00:00 2001 From: Mary <1760003+Thog@users.noreply.github.com> Date: Sun, 28 Feb 2021 14:42:05 +0100 Subject: [PATCH] Add Dockerfile --- .dockerignore | 1 + Dockerfile | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4acd06b --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +config.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3a932fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:alpine + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo && pip install --no-cache-dir -r requirements.txt && apk del gcc musl-dev python3-dev libffi-dev openssl-dev cargo + +COPY . . + +CMD [ "python", "./Robocop.py" ] \ No newline at end of file