feat: db file to data directory

This commit is contained in:
2023-10-22 01:39:43 +08:00
parent 3bb5909053
commit 873e8dfd2b
6 changed files with 14 additions and 13 deletions

View File

@@ -4,10 +4,10 @@ COPY ./webui .
RUN npm install && npm run build
FROM images.local/golang:latest
WORKDIR /app
COPY . /app
COPY --from=0 dist /app/webui/dist
RUN go mod tidy && go build .
COPY . .
COPY --from=0 dist ./webui/dist
RUN buf generate && go mod tidy && go build .
EXPOSE 38080
EXPOSE 38081
ENTRYPOINT [ "./pastebin", "api" ]