restructure the API and update the admin script

This commit is contained in:
ngn
2025-01-04 00:00:10 +03:00
parent 03586da8df
commit 26e8909998
34 changed files with 1699 additions and 983 deletions

View File

@ -1,17 +1,19 @@
FROM golang:1.23.4
WORKDIR /app
WORKDIR /api
COPY *.go ./
COPY *.mod ./
COPY *.sum ./
COPY Makefile ./
COPY util ./util
COPY views ./views
COPY routes ./routes
COPY config ./config
COPY status ./status
COPY database ./database
COPY util ./util
EXPOSE 7001
RUN make
ENTRYPOINT ["/app/server"]
ENTRYPOINT ["/api/api.elf"]