Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ENV CONFIG=/config
ENV DATA=/assets
ENV UID=998
ENV PID=100
ENV PUID=1000
ENV PGID=1000
ENV GIN_MODE=release
VOLUME ["/config", "/assets"]
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
Expand All @@ -36,5 +38,8 @@ COPY client ./client
COPY webassets ./webassets

EXPOSE 8080
COPY start.sh .
RUN chmod +x start.sh
RUN apk update && apk add su-exec && rm -rf /var/cache/apk/*

ENTRYPOINT ["./app"]
ENTRYPOINT ["./start.sh"]
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ services:
| Name | Description | Default |
| --------------- | ----------------------------------------------------------------------- | ------- |
| CHECK_FREQUENCY | How frequently to check for new episodes and missing files (in minutes) | 30 |
| PUID | Sets the UID of the container user | 1000 |
| PGID | Sets the GID of the container user | 1000 |

<!-- LICENSE -->

Expand Down
5 changes: 5 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
chown -R $PUID:$PGID /config /assets /api
echo Running as PID $PUID and GID $PGID.
echo Starting Podgrab...
su-exec $PUID:$PGID ./app