release: v2

This commit is contained in:
2024-03-19 01:03:14 +08:00
parent 06ed1f232d
commit 13fd643c7a
24 changed files with 2285 additions and 527 deletions

View File

@@ -1,13 +1,12 @@
FROM node:18-alpine3.18 as webui
RUN npm config set registry https://registry.npmmirror.com
COPY ./webui .
RUN npm install && npm run build
FROM images.internal/devel:latest
FROM images.local/golang:latest
WORKDIR /app
COPY . /app
COPY --from=0 dist /app/webui/dist
RUN go mod tidy && go build .
RUN make build
EXPOSE 38002
EXPOSE 38080
ENTRYPOINT [ "./pastebin", "api" ]