forked from vieter-v/vieter
chore: removed healthcheck & unused cron stuff from Dockerfile
parent
73d2d4b08f
commit
67c4d19921
|
@ -36,15 +36,8 @@ ENV PATH=/bin \
|
||||||
|
|
||||||
COPY --from=builder /app/dumb-init /app/vieter /bin/
|
COPY --from=builder /app/dumb-init /app/vieter /bin/
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s \
|
|
||||||
--timeout=3s \
|
|
||||||
--start-period=5s \
|
|
||||||
CMD /bin/wget --spider http://localhost:8000/health || exit 1
|
|
||||||
|
|
||||||
RUN mkdir /data && \
|
RUN mkdir /data && \
|
||||||
chown -R www-data:www-data /data && \
|
chown -R www-data:www-data /data
|
||||||
mkdir -p '/var/spool/cron/crontabs' && \
|
|
||||||
echo '0 3 * * * /bin/vieter build' | crontab -
|
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,11 @@ Vieter only supports uploading archives compressed using either gzip, zstd or
|
||||||
xz at the moment.
|
xz at the moment.
|
||||||
{{< /hint >}}
|
{{< /hint >}}
|
||||||
|
|
||||||
|
### `GET /health`
|
||||||
|
|
||||||
|
This endpoint's only use is to be used with healthchecks. It returns a JSON
|
||||||
|
response with the message "Healthy.".
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
All API routes require the API key to provided using the `X-Api-Key` header.
|
All API routes require the API key to provided using the `X-Api-Key` header.
|
||||||
|
|
Loading…
Reference in New Issue