14 lines
330 B
Docker
14 lines
330 B
Docker
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
|
|
RUN GOOS=linux go build -o ./bin/veritas
|
|
|
|
FROM ubuntu
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
COPY --from=build /go/src/app/bin /go/bin
|
|
EXPOSE 6000
|
|
ENTRYPOINT /go/bin/veritas |