Skip to content

Commit

Permalink
Clean up requirements and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmxgti committed Feb 27, 2023
1 parent 8f13c89 commit 25de384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Install pip requirements
COPY requirements.txt /app/requirements.txt
COPY . /app
RUN python -m pip install -r /app/requirements.txt

WORKDIR /app
COPY . /app

# Creates a non-root user with an explicit UID and adds permission to access the /app folder
RUN adduser -u 5678 --disabled-password --gecos "" tokendito && chown -R tokendito /app
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
beautifulsoup4>=4.6.0
botocore>=1.12.36
certifi>=2022.12.07
certifi>=2022.12.07 # This can be removed when requests updates its requirements from 2017.4.17 to >=2022.12.07
platformdirs>=2.5.4
requests>=2.19.0

0 comments on commit 25de384

Please sign in to comment.