Files
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-10 01:15:47 +05:30
ARG VERSION="latest"
ENV VERSION="$VERSION"
2021-10-10 01:15:47 +05:30
RUN echo "$VERSION"
2021-10-29 21:41:47 +05:30
RUN apk add build-base nodejs &&\
2021-07-28 23:53:54 +05:30
make clean && make && \
2021-10-10 01:15:47 +05:30
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" ]