Commit fd20d5f0 authored by Robin Knapp's avatar Robin Knapp

Dockerfile fix

parent 51330fb2
......@@ -9,7 +9,7 @@ ENV N_WORKERS=2
ENV PORT=5000
ENV TZ=Europe/Berlin
# These variables will be used by the actual server
# All following ENV variables will be used by the actual server
ENV SPECS_ABS_PATH=$SPECS_HOME_DIR/
ENV BLUEPRINTS_ABS_PATH=$SPECS_HOME_DIR/
ENV READ_SPECS_FROM_DISK=False
......@@ -55,17 +55,16 @@ ENV WEATHEROBSERVED_BLUEPRINT_URL=$SPECS_BASE_PATH/V2_Blueprint_WeatherObserved.
RUN useradd -ms /bin/bash naiades
#________________________________________
COPY --chown=naiades src $FLASK_HOME_DIR/src/
COPY --chown=naiades specs $SPECS_HOME_DIR/
COPY --chown=naiades requirements.txt $FLASK_HOME_DIR/requirements.txt
COPY --chown=naiades start_service.sh $FLASK_HOME_DIR/
COPY src $FLASK_HOME_DIR/src/
COPY specs $SPECS_HOME_DIR/
COPY requirements.txt $FLASK_HOME_DIR/requirements.txt
COPY start_service.sh $FLASK_HOME_DIR/
RUN touch $FLASK_HOME_DIR/dmv_log
RUN chown -R naiades $FLASK_HOME_DIR
RUN chown -R naiades $FLASK_HOME_DIR && chmod -R 744 $FLASK_HOME_DIR
#________________________________________
WORKDIR $FLASK_HOME_DIR
RUN chown $FLASK_HOME_DIRRUN pip install -r requirements.txt
RUN rm requirements.txt
RUN pip install -r requirements.txt && rm requirements.txt
#________________________________________
USER naiades
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment