pastebin/Dockerfile

14 lines
310 B
Docker
Raw Normal View History

2023-10-21 15:49:59 +00:00
FROM node:18-alpine3.18 as webui
RUN npm config set registry https://registry.npmmirror.com
COPY ./webui .
RUN npm install && npm run build
2023-09-30 13:47:59 +00:00
2023-10-21 15:49:59 +00:00
FROM images.local/golang:latest
2023-09-30 13:47:59 +00:00
2023-10-21 15:49:59 +00:00
COPY . .
COPY --from=0 dist ./webui/dist
RUN buf generate && go mod tidy && go build .
2023-09-30 13:47:59 +00:00
EXPOSE 38080
ENTRYPOINT [ "./pastebin", "api" ]