1
0
Fork 0
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
main
Marcus Noble 6 months ago
parent b07797b292
commit 14af02f424
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
  1. 2
      Dockerfile
  2. 6
      src/convert.sh

@ -5,7 +5,7 @@ FROM golang:1.13 AS UV3DP_BUILDER
go build -o /app/uv3dp ./cmd/uv3dp
FROM alpine:latest
FROM bash:5
COPY --from=UV3DP_BUILDER /app/uv3dp /usr/bin/
ADD src/convert.sh /convert.sh

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd ${WATCH_DIRECTORY:=/home}
@ -13,7 +13,7 @@ convert() {
export -f convert
while [ true ]; do
sleep 30
find . -type f -mmin +1 -iname '*.sl1' -exec bash -c 'convert {}' \;
sleep 30
done

Loading…
Cancel
Save