Files
authorizer/Dockerfile

22 lines
415 B
Docker
Raw Permalink Normal View History

FROM golang:1.16-alpine as builder
WORKDIR /app
COPY server server
COPY Makefile .
2021-10-10 00:28:44 +05:30
ARG VERSION
ENV VERSION="${VERSION}"
2021-07-27 17:46:02 +05:30
RUN apk add build-base &&\
2021-07-28 23:53:54 +05:30
make clean && make && \
2021-10-10 00:28:44 +05:30
chmod 777 build/server && \
echo "$VERSION"
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" ]