hydra-passwordless/misc/docker/Dockerfile

24 lines
385 B
Docker

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"]