-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c96def4
commit 77a6d7a
Showing
1 changed file
with
5 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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
ARG FUNCTION_DIR="/ngen-datastream" | ||
FROM python:3.9 as build-image | ||
|
||
RUN apt-get upgrade | ||
RUN apt-get install -y pigz | ||
|
||
ARG FUNCTION_DIR | ||
WORKDIR /tmp | ||
RUN git clone https://github.com/CIROH-UA/ngen-datastream.git | ||
|
||
FROM python:3.9-slim | ||
FROM python:3.9 | ||
ARG FUNCTION_DIR | ||
WORKDIR ${FUNCTION_DIR} | ||
COPY --from=build-image /tmp/${FUNCTION_DIR} ${FUNCTION_DIR} | ||
RUN pip3 install --upgrade pip && pip3 install -e "${FUNCTION_DIR}/forcingprocessor" | ||
|
||
RUN groupadd -r mygroup && useradd -r -g mygroup myuser | ||
RUN chown -R myuser:mygroup ${FUNCTION_DIR} | ||
USER root | ||
RUN apt-get update && apt-get install -y pigz | ||
|
||
USER myuser | ||
|
||
|