okospaceapi/Dockerfile
Aaron Fischer 59b3316c35
Some checks failed
/ docker-image (push) Failing after 44s
x
2023-10-19 22:50:21 +02:00

11 lines
258 B
Docker

FROM golang:alpine AS build
COPY . /app
WORKDIR /app
RUN ./generate-spaceapi-types.sh
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"]