Dokku deployment recipe

This commit is contained in:
2020-05-20 14:07:58 +02:00
parent 523ce77a84
commit a6ffc639a1
5 changed files with 71 additions and 1 deletions

View File

@ -0,0 +1,22 @@
FROM golang:1.13 AS build
ARG HTTP_PROXY=
ARG HTTPS_PROXY=
ARG http_proxy=
ARG https_proxy=
RUN apt-get update && apt-get install -y build-essential git bash
COPY . /src
WORKDIR /src
RUN make ARCH_TARGETS=amd64 release
FROM busybox
COPY --from=build /src/release/server-linux-amd64 /app
WORKDIR /app
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]