Skip to content

Commit

Permalink
fix: try to fix permission error on untrypoint under certain conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag authored Mar 24, 2024
1 parent 693ca7c commit ccd5810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN git clone --depth 1 --branch v2.0 https://gitdab.com/cadence/out-of-your-ele
WORKDIR /app
RUN npm i

RUN adduser ooye -D
RUN adduser ooye -Du 1001
RUN chown -R ooye /app
USER ooye

Expand All @@ -25,6 +25,6 @@ ENV AS_TOKEN="[a unique 64 character hex string]"

VOLUME /app/db

COPY --chmod=744 --chown=1000:1000 ./docker-entrypoint.sh /docker-entrypoint.sh
COPY --chmod=744 --chown=ooye:ooye ./docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]

0 comments on commit ccd5810

Please sign in to comment.