2023-09-28 10:13:41 +02:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apk add --no-cache bash wget
|
|
|
|
RUN ./generate-spaceapi-types.sh
|
|
|
|
|
2024-01-24 11:45:19 +01:00
|
|
|
RUN GOOS=linux go build -o oko-spaceapi cmd/cmd.go
|
2023-09-28 10:13:41 +02:00
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/oko-spaceapi /app/oko-spaceapi
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/app/oko-spaceapi"]
|