okospaceapi/Dockerfile
Aaron Fischer e6e8aadd7c
All checks were successful
/ docker-image (push) Successful in 1m31s
/ deployment (push) Successful in 0s
Add deployment pipeline and add some content
2024-01-10 00:14:01 +01:00

14 lines
293 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/server.go
FROM alpine
WORKDIR /app
COPY --from=build /app/oko-spaceapi /app/oko-spaceapi
EXPOSE 8080
CMD ["/app/oko-spaceapi"]