Dokku deployment recipe
This commit is contained in:
24
misc/dokku/Dockerfile
Normal file
24
misc/dokku/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
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
|
||||
|
||||
ENV HTTP_ADDRESS=:80
|
||||
|
||||
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]
|
@ -104,7 +104,6 @@ function release_server {
|
||||
dump_default_conf 'server' $os $arch
|
||||
|
||||
copy 'server' $os $arch "$PROJECT_DIR/README.md" "README.md"
|
||||
copy 'server' $os $arch "$PROJECT_DIR/cmd/server/public" "public"
|
||||
copy 'server' $os $arch "$PROJECT_DIR/cmd/server/template" "template"
|
||||
|
||||
compress 'server' $os $arch
|
||||
|
Reference in New Issue
Block a user