Skip to content

Commit

Permalink
add cache volume to xlget docker
Browse files Browse the repository at this point in the history
  • Loading branch information
luisguillenc committed Aug 14, 2020
1 parent 0d16cf2 commit b01bba8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile.xlget
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ RUN apk update && apk add --no-cache git make ca-certificates && update-ca-certi
# create user for service
RUN adduser -D -g 'luids' luxlist \
&& mkdir -p /var/lib/luids/xlist \
&& mkdir -p /var/cache/luids/xlist \
&& touch /var/lib/luids/xlist/.keep \
&& chown -R luxlist /var/lib/luids/xlist
&& touch /var/cache/luids/xlist/.keep \
&& chown -R luxlist /var/lib/luids/xlist \
&& chown -R luxlist /var/cache/luids/xlist

WORKDIR /app

Expand Down Expand Up @@ -45,7 +48,8 @@ COPY --from=build-env /etc/passwd /etc/passwd
COPY --from=build-env /app/bin/xlget /bin/
COPY --from=build-env /app/configs/docker/xlistd/* /etc/luids/xlist/
COPY --from=build-env /var/lib/luids /var/lib/luids
COPY --from=build-env /var/cache/luids /var/cache/luids

USER luxlist
VOLUME [ "/etc/luids", "/var/lib/luids/xlist" ]
VOLUME [ "/etc/luids", "/var/lib/luids/xlist", "/var/cache/luids/xlist" ]
CMD [ "/bin/xlget", "--auto", "--config", "/etc/luids/xlist/xlget.toml" ]

0 comments on commit b01bba8

Please sign in to comment.