authorizer/Dockerfile

21 lines
403 B
Docker
Raw Normal View History

FROM golang:1.16-alpine as builder
WORKDIR /app
COPY server server
COPY Makefile .
ARG VERSION=0.1.0-beta.0
ENV VERSION="${VERSION}"
2021-07-27 12:16:02 +00:00
RUN apk add build-base &&\
2021-07-28 18:23:54 +00:00
make clean && make && \
chmod 777 build/server
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY app app
COPY templates templates
COPY --from=builder /app/build build
EXPOSE 8080
CMD [ "./build/server" ]