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 d55c233 commit 1d10711
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 @@ -13,17 +13,17 @@
# leverage the renci python base image
FROM python:3.9-slim

# 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-ui-data

# 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 1d10711

Please sign in to comment.