Skip to content

Commit

Permalink
Update Dockerfile to configure PATH and modify ENTRYPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
otherguy committed Sep 30, 2024
1 parent b284ab4 commit bff291b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ USER nonroot:nonroot
# Set working directory
WORKDIR /workdir

# Configure PATH
ENV PATH="/workdir/.local/bin:${PATH}"

# Install
COPY --chown=nonroot:nonroot requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
Expand All @@ -35,4 +38,4 @@ LABEL maintainer="otherguy <[email protected]>"
LABEL io.whalebrew.name="yamlfix"
LABEL io.whalebrew.config.keep_container_user="false"

ENTRYPOINT ["/workdir/.local/bin/yamlfix"]
ENTRYPOINT ["yamlfix"]

0 comments on commit bff291b

Please sign in to comment.