Feature: watcher based bulk uploads (#886)
* initial commit * fix watcher.js for docker * Update docs * update healthcheck * update docs --------- Co-authored-by: Christian Beutel <>
This commit is contained in:
@@ -1,33 +1,3 @@
|
||||
FROM curlimages/curl:8.18.0 AS download-env
|
||||
|
||||
# renovate: datasource=github-releases depName=stunnel/static-curl packageName=stunnel/static-curl
|
||||
ENV CURL_VERSION=8.18.0
|
||||
|
||||
RUN set -eux ; \
|
||||
ARCHITECTURE="$(uname -m)" ; \
|
||||
case $ARCHITECTURE in \
|
||||
x86_64) ARCHITECTURE="x86_64" ;; \
|
||||
aarch64 | armv8* | arm64) ARCHITECTURE="aarch64" ;; \
|
||||
*) \
|
||||
echo "(!) Architecture $ARCHITECTURE unsupported" ; \
|
||||
exit 1 \
|
||||
;; \
|
||||
esac ; \
|
||||
curl \
|
||||
--connect-timeout 10 \
|
||||
--fail \
|
||||
--location \
|
||||
--max-time 300 \
|
||||
--output /tmp/curl.tar.xz \
|
||||
--proto '=https' \
|
||||
--show-error \
|
||||
--silent \
|
||||
--tlsv1.2 \
|
||||
"https://github.com/stunnel/static-curl/releases/download/${CURL_VERSION}/curl-linux-${ARCHITECTURE}-glibc-${CURL_VERSION}.tar.xz" \
|
||||
; \
|
||||
tar -xJf /tmp/curl.tar.xz -C /tmp ; \
|
||||
chmod +x /tmp/curl ;
|
||||
|
||||
FROM node:22-alpine AS build-env
|
||||
|
||||
WORKDIR /app
|
||||
@@ -45,12 +15,11 @@ FROM node:22-alpine
|
||||
WORKDIR /app/uploads
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=download-env /tmp/curl /curl
|
||||
COPY --from=build-env /app /app
|
||||
COPY ./cron.sh /etc/periodic/15min/cron
|
||||
RUN chmod +x /etc/periodic/15min/cron
|
||||
RUN apk add --no-cache curl
|
||||
COPY watcher.js /app/watcher.js
|
||||
|
||||
CMD crond && node build
|
||||
CMD ["npm", "run", "start"]
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user