Skip to content

Commit

Permalink
fix pigz
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Feb 2, 2024
1 parent c96def4 commit 77a6d7a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker/forcingprocessor/Dockerfile
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


0 comments on commit 77a6d7a

Please sign in to comment.