Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jul 20, 2024
1 parent cfa3080 commit 8c44b27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
node-version: 'lts/*'
cache: npm

- run: npm ci
- run: npm run build
- run: cp -r dist/ build/

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
context: .
push: true
provenance: false
file: Dockerfile
file: distribution/containers/tyr.Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
24 changes: 24 additions & 0 deletions distribution/containers/tyr.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Use node alpine docker image
FROM docker.io/node:lts-alpine

# Install runtime dependencies
RUN apk --no-cache add \
mediainfo \
tini \
coreutils

COPY package.json package-lock.json build /app/

WORKDIR /app/

RUN mv build dist &&\
npm install --ignore-scripts --omit=dev &&\
npm cache clean --force


# Expose port 3000
EXPOSE 3000

# Flood
ENV FLOOD_OPTION_HOST="0.0.0.0"
ENTRYPOINT ["/sbin/tini", "--", "node", "--enable-source-maps", "--use_strict", "dist/index.js"]

0 comments on commit 8c44b27

Please sign in to comment.