v0.5: readme and dockerfile update, removed old panel sources, added new frontend as submodule

This commit is contained in:
default
2024-08-09 07:03:24 +08:00
parent 73e481bc96
commit a5a31a0d63
22 changed files with 42 additions and 718 deletions

View File

@@ -1,9 +1,4 @@
FROM alpine:latest AS codemirror
RUN apk add --no-cache unzip wget make
COPY Makefile .
RUN make setup-codemirror
FROM golang:1.22.4-alpine as builder
FROM golang:1.22.6-alpine as builder
COPY src /src
ENV GOCACHE=/root/.cache/go-build
WORKDIR /src
@@ -18,10 +13,8 @@ FROM alpine:latest
LABEL maintainer="yusing@6uo.me"
RUN apk add --no-cache tzdata
RUN mkdir -p /app/templates
COPY --from=codemirror templates/codemirror/ /app/templates/codemirror
COPY templates/ /app/templates
COPY schema/ /app/schema
# copy binary
COPY --from=builder /src/go-proxy /app/
RUN chmod +x /app/go-proxy
@@ -29,7 +22,7 @@ ENV DOCKER_HOST unix:///var/run/docker.sock
ENV GOPROXY_DEBUG 0
EXPOSE 80
EXPOSE 8080
EXPOSE 8888
EXPOSE 443
WORKDIR /app