Add Docker Hub packaging tasks

This commit is contained in:
2020-06-17 23:47:49 +02:00
parent a13caf3e4d
commit 3a1d08661b
2 changed files with 47 additions and 0 deletions

24
misc/docker/Dockerfile Normal file
View File

@ -0,0 +1,24 @@
FROM golang:1.14 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
EXPOSE 3000
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]