Skip to content

Commit

Permalink
Merge pull request #99 from jmeridth/jm-fix-output-permissions
Browse files Browse the repository at this point in the history
fix: permissions in Dockerfile when trying to output
  • Loading branch information
zkoppert authored Mar 14, 2024
2 parents d8f9720 + ed6678a commit 5a1e13f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ LABEL com.github.actions.name="stale-repos" \
org.opencontainers.image.vendor="GitHub" \
org.opencontainers.image.description="Find stale repositories in a GitHub organization."


WORKDIR /action/workspace
COPY requirements.txt stale_repos.py /action/workspace/

RUN python3 -m pip install --no-cache-dir -r requirements.txt \
RUN useradd -m appuser \
&& chown -R appuser:appuser /action/workspace \
&& python3 -m pip install --no-cache-dir -r requirements.txt \
&& apt-get -y update \
&& apt-get -y install --no-install-recommends git-all=1:2.39.2-1.1 \
&& rm -rf /var/lib/apt/lists/*

RUN useradd -m appuser
USER appuser

CMD ["/action/workspace/stale_repos.py"]
Expand Down

0 comments on commit 5a1e13f

Please sign in to comment.