mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 02:15:12 +00:00
Dockerfile: add an extra stage for rtorrent-flood dbg image
This commit is contained in:
@@ -128,6 +128,7 @@ jobs:
|
||||
- name: Publish flood:master-dbg to Docker Hub
|
||||
uses: docker/build-push-action@v2
|
||||
file: ./Dockerfile
|
||||
target: flood
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
@@ -135,6 +136,17 @@ jobs:
|
||||
push: true
|
||||
tags: jesec/flood:master-dbg
|
||||
|
||||
- name: Publish rtorrent-flood:master-dbg to Docker Hub
|
||||
uses: docker/build-push-action@v2
|
||||
file: ./Dockerfile
|
||||
target: rtorrent-flood
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: jesec/rtorrent-flood:master-dbg
|
||||
|
||||
pkg:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
|
||||
+9
-5
@@ -13,8 +13,6 @@
|
||||
ARG BUILDPLATFORM=amd64
|
||||
ARG NODE_IMAGE=node:alpine
|
||||
|
||||
FROM jesec/rtorrent:master as rtorrent
|
||||
|
||||
FROM --platform=$BUILDPLATFORM ${NODE_IMAGE} as nodebuild
|
||||
|
||||
WORKDIR /usr/src/app/
|
||||
@@ -36,9 +34,6 @@ WORKDIR /usr/src/app/
|
||||
# Copy sources
|
||||
COPY --from=nodebuild /usr/src/app ./
|
||||
|
||||
# Copy rTorrent
|
||||
COPY --from=rtorrent / /
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apk --no-cache add \
|
||||
mediainfo
|
||||
@@ -58,3 +53,12 @@ ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server",
|
||||
|
||||
# Then, to start a debugging session of frontend:
|
||||
# docker exec -it ${container_id} npm --prefix=/usr/src/app/ run start:development:client
|
||||
|
||||
# rtorrent-flood image
|
||||
FROM jesec/rtorrent:master as rtorrent
|
||||
FROM flood as rtorrent-flood
|
||||
|
||||
# Copy rTorrent
|
||||
COPY --from=rtorrent / /
|
||||
|
||||
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0", "--rtorrent"]
|
||||
|
||||
Reference in New Issue
Block a user