Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -12,7 +12,14 @@ RUN chmod 644 /code/fruitful_patterns.json
|
|
12 |
# Copy requirements file and install dependencies
|
13 |
COPY ./requirements.txt /code/requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
|
|
|
|
|
15 |
|
|
|
|
|
|
|
16 |
# Download spaCy model
|
17 |
RUN python -m spacy download en_core_web_md
|
18 |
|
|
|
12 |
# Copy requirements file and install dependencies
|
13 |
COPY ./requirements.txt /code/requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
15 |
+
RUN useradd -m -u 1000 user
|
16 |
+
USER user
|
17 |
+
ENV HOME=/home/user \
|
18 |
+
PATH=/home/user/.local/bin:$PATH
|
19 |
|
20 |
+
WORKDIR $HOME/app
|
21 |
+
|
22 |
+
COPY --chown=user . $HOME/app
|
23 |
# Download spaCy model
|
24 |
RUN python -m spacy download en_core_web_md
|
25 |
|