12 lines
252 B
Text
12 lines
252 B
Text
|
FROM golang:alpine AS build
|
||
|
COPY . /app
|
||
|
WORKDIR /app
|
||
|
RUN GOOS=linux go generate
|
||
|
RUN GOOS=linux go build -o oko-spaceapi cmd/server.go
|
||
|
|
||
|
FROM alpine
|
||
|
WORKDIR /app
|
||
|
COPY --from=build /app/oko-spaceapi /app/oko-spaceapi
|
||
|
EXPOSE 8080
|
||
|
CMD ["/app/oko-spaceapi"]
|