Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fix user permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
maximusunc committed Mar 4, 2022
1 parent b9521ef commit eb99db7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# leverage the renci python base image
FROM renciorg/renci-python-image:v0.0.1

# switch to the new user created in the above image
USER nru
RUN mkdir /robokop-ara
WORKDIR /robokop-ara

# set up requirements
COPY ./requirements.txt ./requirements.txt
Expand All @@ -11,6 +11,12 @@ RUN pip install -r ./requirements.txt
# set up source
COPY . .

# let all files be accessible by non-root
RUN chmod 777 -R .

# switch to the new user created in the above image
USER nru

# set up entrypoint
CMD ["./main.sh"]
EXPOSE 7092

0 comments on commit eb99db7

Please sign in to comment.