Skip to content

Commit

Permalink
moving where requirements are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Sep 8, 2022
1 parent 0dacb53 commit 2e215c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ FROM python:3.9-slim
# get some credit
LABEL maintainer="[email protected]"

# Copy in just the requirements first for caching purposes
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

# create a new non-root user and switch to it
RUN useradd --create-home -u 1000 nru
USER nru

# Create the directory for the code and cd to it
WORKDIR /repo/APSVIZ-Settings

# Copy in just the requirements first for caching purposes
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

# Copy in the rest of the code
COPY . .

Expand Down

0 comments on commit 2e215c9

Please sign in to comment.