pastebin/Dockerfile
2023-10-22 00:54:14 +08:00

14 lines
310 B
Docker

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.local/golang:latest
COPY . .
COPY --from=0 dist ./webui/dist
RUN buf generate && go mod tidy && go build .
EXPOSE 38080
ENTRYPOINT [ "./pastebin", "api" ]