2024-04-10 09:23:23 +00:00
|
|
|
FROM golang AS build
|
|
|
|
# RUN apk --no-cache add gcc g++ make git
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
COPY . .
|
|
|
|
RUN go mod tidy
|
|
|
|
# RUN GOOS=linux go build -ldflags="-s -w" -o ./bin/web-app
|
2024-04-25 11:51:47 +00:00
|
|
|
RUN GOOS=linux go build -o ./bin/veritas
|
2024-04-10 09:23:23 +00:00
|
|
|
|
|
|
|
FROM ubuntu
|
2024-04-25 11:51:47 +00:00
|
|
|
RUN mkdir /app
|
|
|
|
WORKDIR /app
|
2024-04-10 09:23:23 +00:00
|
|
|
COPY --from=build /go/src/app/bin /go/bin
|
2024-04-25 11:51:47 +00:00
|
|
|
EXPOSE 6000
|
|
|
|
ENTRYPOINT /go/bin/veritas
|