Skip to content

Commit

Permalink
Merge pull request #1103 from johnoliver/fix-docker
Browse files Browse the repository at this point in the history
Fix permissions in docker container
  • Loading branch information
johnoliver authored Jul 24, 2024
2 parents a563c37 + afbda1b commit 8d809fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ RUN apt-get update && apt-get -y install openssl adduser && \

COPY --from=build /home/api/deployment /home/api/deployment

RUN chown -R api: /home/api/ && find /home/api/
RUN chown -R api: /home/api/ && \
chmod -R ug+r /home/api/ && \
chmod u+rwx /home/api/ && \
chmod u+rwx /home/api/deployment && \
find /home/api/

USER api

Expand All @@ -59,5 +63,5 @@ ENV JAVA_OPTS=""
ARG type=frontend
ENV typeEnv=$type

CMD cd /home/api/deployment/ && ./run.sh ${typeEnv}
CMD ./run.sh ${typeEnv}

0 comments on commit 8d809fa

Please sign in to comment.