2022-01-17 22:33:51 +00:00
|
|
|
FROM golang:alpine AS build
|
2021-10-06 15:24:55 +00:00
|
|
|
|
2022-01-17 22:33:51 +00:00
|
|
|
WORKDIR /src
|
|
|
|
RUN apk --no-cache add git
|
|
|
|
RUN git clone https://codeberg.org/video-prize-ranch/rimgo .
|
2021-10-06 15:24:55 +00:00
|
|
|
|
2022-02-21 17:26:31 +00:00
|
|
|
RUN go mod download
|
2022-01-17 22:33:51 +00:00
|
|
|
RUN go build
|
2021-10-06 15:24:55 +00:00
|
|
|
|
2022-01-17 22:33:51 +00:00
|
|
|
FROM alpine:latest as bin
|
2021-10-06 15:24:55 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
2022-01-17 22:34:55 +00:00
|
|
|
COPY --from=build /src/rimgo .
|
2021-10-06 15:24:55 +00:00
|
|
|
|
2022-01-17 22:33:51 +00:00
|
|
|
EXPOSE 3000
|
2021-10-06 15:24:55 +00:00
|
|
|
|
2022-01-17 22:34:55 +00:00
|
|
|
CMD ["/app/rimgo"]
|