2023-09-28 22:40:00 +02:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
2023-10-19 22:50:21 +02:00
|
|
|
RUN ./generate-spaceapi-types.sh
|
2023-09-28 22:40:00 +02:00
|
|
|
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"]
|