justlog/Dockerfile
2021-11-23 12:13:46 +01:00

23 lines
No EOL
459 B
Docker

FROM quay.io/goswagger/swagger:latest
WORKDIR /app
COPY . .
RUN make docs
FROM node:16-alpine
WORKDIR /app
COPY --from=0 /app .
WORKDIR /app/web
RUN yarn install
RUN yarn build
FROM golang:latest
WORKDIR /app
COPY --from=1 /app .
RUN go get ./...
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=2 /app/app .
CMD ["./app", "--config=/etc/justlog.json"]
EXPOSE 8025