14 lines
290 B
Docker
14 lines
290 B
Docker
FROM golang:alpine AS build
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache bash wget
|
|
RUN ./generate-spaceapi-types.sh
|
|
|
|
RUN GOOS=linux go build -o oko-spaceapi cmd/cmd.go
|
|
|
|
FROM alpine
|
|
WORKDIR /app
|
|
COPY --from=build /app/oko-spaceapi /app/oko-spaceapi
|
|
EXPOSE 8080
|
|
CMD ["/app/oko-spaceapi"]
|