parent
0f50e8d4d2
commit
59b3316c35
3 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
FROM golang:alpine AS build
|
FROM golang:alpine AS build
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN GOOS=linux go generate
|
RUN ./generate-spaceapi-types.sh
|
||||||
RUN GOOS=linux go build -o oko-spaceapi cmd/server.go
|
RUN GOOS=linux go build -o oko-spaceapi cmd/server.go
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
script="$(realpath "${BASH_SOURCE[-1]}")"
|
script="$(realpath "${BASH_SOURCE[-1]}")"
|
||||||
path="$(dirname "$script")"
|
path="$(dirname "$script")"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue