pastebin/Dockerfile

14 lines
312 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-10-21 17:39:43 +00:00
WORKDIR /app
COPY . /app
COPY --from=0 dist /app/webui/dist
RUN go mod tidy && go build .
2023-09-30 13:47:59 +00:00
2023-10-21 17:49:37 +00:00
EXPOSE 38080
2023-09-30 13:47:59 +00:00
ENTRYPOINT [ "./pastebin", "api" ]