Adapted for Raspberry Pi:
- Added Dockerfile-armhf (arm32v7 alpine) - Switched from bcrypt to bcrypt.js new file : Dockerfile-armhf modified : authentication/auth.js modified : package.jsonpull/168/head
parent
38fa39d765
commit
89cd969fcb
@ -0,0 +1,27 @@
|
|||||||
|
FROM arm32v7/alpine:3.12
|
||||||
|
|
||||||
|
ENV UID=1000 \
|
||||||
|
GID=1000 \
|
||||||
|
USER=youtube
|
||||||
|
|
||||||
|
RUN addgroup -S $USER -g $GID && adduser -D -S $USER -G $USER -u $UID
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
ffmpeg \
|
||||||
|
npm \
|
||||||
|
python2 \
|
||||||
|
su-exec \
|
||||||
|
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
||||||
|
atomicparsley
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --chown=$UID:$GID [ "package.json", "package-lock.json", "/app/" ]
|
||||||
|
|
||||||
|
RUN npm install && chown -R $UID:$GID ./
|
||||||
|
|
||||||
|
COPY --chown=$UID:$GID [ "./", "/app/" ]
|
||||||
|
|
||||||
|
EXPOSE 17442
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
|
CMD [ "node", "app.js" ]
|
||||||
Loading…
Reference in New Issue