Skip to content

Commit

Permalink
Added permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed Oct 29, 2024
1 parent 6c97f4b commit 03f4c71
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,28 @@ ENV PORTAL_SUPERUSER_NAME=admin
ENV PORTAL_SUPERUSER_PASSWORD=pass
ENV PROJ_LIB=/opt/conda/envs/tethys/share/proj


# fix error for numpy not beign imported
RUN apt-get update \
&& apt-get -y install gfortran \
&& rm -rf /var/lib/apt/lists/*

#######################
# INSTALL APPLICATION #
#######################

RUN cd ${TETHYS_HOME}/apps/ngiab && \
micromamba install --yes -c conda-forge --file requirements.txt && \
micromamba remove pyarrow && micromamba install --yes -c conda-forge pyarrow && \
micromamba clean --all --yes && \
npm install && npm run build && \
tethys install -d -N
tethys install -d -N && \
export NGINX_USER=$(grep 'user .*;' /etc/nginx/nginx.conf | awk '{print $2}' | awk -F';' '{print $1}') && \
chown -R ${NGINX_USER}: ${TETHYS_PERSIST} && \
chown -R ${NGINX_USER}: ${STATIC_ROOT} && \
chown -R ${NGINX_USER}: ${WORKSPACE_ROOT} && \
chown -R ${NGINX_USER}: ${MEDIA_ROOT} && \
chown -R ${NGINX_USER}: ${TETHYSAPP_DIR} && \
chown -R ${NGINX_USER}: ${TETHYS_HOME}

#########
# PORTS #
Expand Down

0 comments on commit 03f4c71

Please sign in to comment.