From 059ec58e9a2cf4209a0c0500adbec960a6f586eb Mon Sep 17 00:00:00 2001 From: thevickypedia Date: Tue, 24 Oct 2023 14:33:15 -0500 Subject: [PATCH] Update Dockerfile to simplify build --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59b3167..f818166 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,16 +4,15 @@ FROM python:3.11-alpine # Install git RUN apk add --no-cache git -# Create a new directory in root and copy the module -RUN mkdir /none-shall-pass -COPY . /none-shall-pass +# Copy package data to root +COPY src/* / # Upgrade pip and install requests module RUN python -m pip install --upgrade pip RUN python -m pip install requests -# Set working directory -WORKDIR /none-shall-pass +# Set validator.py as executable +RUN chmod +x /validator.py # Set entrypoint for docker run -ENTRYPOINT ["python", "./src/validator.py"] +ENTRYPOINT ["python", "/validator.py"]