-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving where requirements are installed
- Loading branch information
1 parent
0dacb53
commit 2e215c9
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 . . | ||
|
||
|