okospaceapi/Dockerfile
Aaron Fischer 162d1cc00c
All checks were successful
/ docker-image (push) Successful in 1m30s
/ deployment (push) Successful in 0s
Add a wheel of fortune and fix json errors
2024-01-24 11:45:19 +01:00

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"]