update files, small fixes

This commit is contained in:
pluja 2024-02-18 23:37:33 +01:00
parent 3d6234a4f9
commit 87674dee44
3 changed files with 8 additions and 6 deletions

View File

@ -45,7 +45,7 @@ services:
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.request_body.max_size: 10MB
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
test: wget --no-verbose --tries=1 --spider http://localhost:80/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5

View File

@ -8,22 +8,24 @@ RUN chmod +x kycnotme
# Tailwind CSS compiler
FROM node:latest as tailwind
WORKDIR /app
COPY ./package.json .
COPY ./package-lock.json .
COPY ./tailwind.config.js .
COPY ./frontend/ /app/
RUN npm i && \
npx tailwindcss -i ./static/css/input.css -o ./style.css --minify
npx tailwindcss -i /app/static/css/input.css -o /app/style.css --minify
FROM alpine:latest as certs
RUN apk --update add ca-certificates
FROM scratch
FROM alpine:latest
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /app
COPY ./frontend/ /app/frontend/
COPY --from=tailwind /app/style.css /app/frontend/static/style.css
COPY ./frontend /app/frontend
COPY --from=tailwind /app/style.css /app/frontend/static/css/style.css
COPY --from=builder /app/kycnotme /bin/usr/kycnotme
ENV PATH="/bin/usr:${PATH}"

2
src/package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "kycnotme",
"name": "src",
"lockfileVersion": 3,
"requires": true,
"packages": {