Skip to content

Commit

Permalink
Update Dockerfile to simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Oct 24, 2023
1 parent 225e822 commit 059ec58
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 059ec58

Please sign in to comment.