authorizer/Dockerfile

22 lines
424 B
Docker
Raw Normal View History

FROM golang:1.16-alpine as builder
WORKDIR /app
COPY server server
COPY Makefile .
2021-10-09 19:45:47 +00:00
ARG VERSION="latest"
ENV VERSION="$VERSION"
2021-10-09 19:45:47 +00:00
RUN echo "$VERSION"
2021-10-29 16:11:47 +00:00
RUN apk add build-base nodejs &&\
2021-07-28 18:23:54 +00:00
make clean && make && \
2021-10-09 19:45:47 +00:00
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" ]