yats.git

ref: 20d4aff6b997ee78bb8f9bac57b27c170a8ec6ba

server/Dockerfile


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
FROM docker.io/golang:1.23rc2-alpine3.20 as build

WORKDIR /app
COPY . ./
RUN go mod download
RUN go build -o yats-server .

# stage2 - serve the app
FROM build as serve
EXPOSE 8080
CMD [ "./yats-server" ]