mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-09 06:07:56 -05:00
update files, small fixes
This commit is contained in:
parent
3d6234a4f9
commit
87674dee44
@ -45,7 +45,7 @@ services:
|
|||||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
caddy.request_body.max_size: 10MB
|
caddy.request_body.max_size: 10MB
|
||||||
healthcheck: #optional (recommended) since v0.10.0
|
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
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
@ -8,22 +8,24 @@ RUN chmod +x kycnotme
|
|||||||
|
|
||||||
# Tailwind CSS compiler
|
# Tailwind CSS compiler
|
||||||
FROM node:latest as tailwind
|
FROM node:latest as tailwind
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./package.json .
|
COPY ./package.json .
|
||||||
COPY ./package-lock.json .
|
COPY ./package-lock.json .
|
||||||
COPY ./tailwind.config.js .
|
COPY ./tailwind.config.js .
|
||||||
COPY ./frontend/ /app/
|
COPY ./frontend/ /app/
|
||||||
|
|
||||||
RUN npm i && \
|
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
|
FROM alpine:latest as certs
|
||||||
RUN apk --update add ca-certificates
|
RUN apk --update add ca-certificates
|
||||||
|
|
||||||
FROM scratch
|
FROM alpine:latest
|
||||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./frontend/ /app/frontend/
|
COPY ./frontend /app/frontend
|
||||||
COPY --from=tailwind /app/style.css /app/frontend/static/style.css
|
COPY --from=tailwind /app/style.css /app/frontend/static/css/style.css
|
||||||
COPY --from=builder /app/kycnotme /bin/usr/kycnotme
|
COPY --from=builder /app/kycnotme /bin/usr/kycnotme
|
||||||
ENV PATH="/bin/usr:${PATH}"
|
ENV PATH="/bin/usr:${PATH}"
|
||||||
|
|
||||||
|
2
src/package-lock.json
generated
2
src/package-lock.json
generated
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "kycnotme",
|
"name": "src",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
Loading…
Reference in New Issue
Block a user