Skip to content

Commit

Permalink
Expose port 8000 in services-base
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Nov 27, 2023
1 parent a015699 commit 5ee6636
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions services-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ghcr.io/diracgrid/diracx/base

EXPOSE 8000

# Copying in ENTRYPOINT script and environment specification
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/
Expand All @@ -8,11 +8,9 @@ RUN micromamba install --freeze-installed --yes --file /tmp/environment.yml --n
micromamba clean --all --yes --force-pkgs-dirs && \
rm -rf /tmp/environment.yml


# In many clusters the container is ran as a random uid for security reasons.
# If we mark the conda directory as group 0 and give it group write permissions
# then we're still able to manage the environment from inside the container.
USER 0
RUN chown -R $MAMBA_USER:0 /opt/conda && chmod -R g=u /opt/conda
USER $MAMBA_USER

0 comments on commit 5ee6636

Please sign in to comment.