diff --git a/README.md b/README.md index bce07e1..df11c88 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,6 @@ -# zdamegzaminzawodowy.pl - backend +# [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl) - backend -This project contains the API and other core infrastructure items needed for all [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl) apps. - -## Development - -### Prerequisites -1. Golang -2. Docker + docker-compose -3. make - -### Installation - -1. ``git clone git@github.com:zdam-egzamin-zawodowy/backend.git``. -2. ``cd backend && cp .env.example .env.local`` -3. ``make docker-compose-up`` -4. Run the app - ``go run ./cmd/server/main.go``. +The core infrastructure backend (API, Docker etc) for [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl) ## License Distributed under the MIT License. See ``LICENSE`` for more information. diff --git a/build/server/Dockerfile b/build/server/Dockerfile index 7bbcd6a..1ea0d63 100644 --- a/build/server/Dockerfile +++ b/build/server/Dockerfile @@ -15,6 +15,7 @@ ARG VERSION="0.0.0" RUN apk --no-cache add musl-dev gcc build-base RUN go install github.com/99designs/gqlgen@v0.14.0 RUN go generate ./... +ENV CGO_ENABLED=0 RUN go build -ldflags="-X 'main.Version=$VERSION'" -o zdamegzawodowy ./cmd/server ######## Start a new stage from scratch #######