An authentication server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
403 B

FROM alpine:latest
RUN apk add --no-cache crystal shards openssl openssl-dev musl-dev libc6-compat
COPY . /opt/app/
RUN cd /opt/app && \
shards
ENV KEMAL_ENV test
RUN cd /opt/app/ && crystal spec
ENV KEMAL_ENV production
RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/authenticate.cr
CMD /opt/app/authenticate